Allow folding all imports into a single line #30763
patrickJramos
started this conversation in
Ideas From VSCode
Replies: 3 comments 1 reply
-
|
Totally agree. It's important feature to have, because it makes each file look much more complex that it is. Especially when you don't use barrel files so your imports take half a screen |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
I would really like to have this too, way to useful! |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
+1 on this! I just noticed this again and found it extremely annoying, as I am currently working on a legacy file with 71 imports that take up ~2 pages of screen-space. 🙈 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes we need to import things from a lot of files, which can take up most if not all of screen when you open a file.
VSCode allows us to group all imports into a single fold block, essentially hiding all imports when folded, so we can immediately see the contents of the file
example from VSCode with all imports folded into a single line:

Zed doesn't have that fold region:

For clarity's sake, Zed does have folding multiline imports, but it's not what i'm talking about

Additionally, VSCode has a setting
editor.foldingImportsByDefaultwhich hides the imports by default when opening a file, which would be useful as wellBeta Was this translation helpful? Give feedback.
All reactions