-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable code folding and collapsing #105
Comments
Now that is being developed, I have a few suggestions: Please add support for this code folding operation (I don't know what to call it):
In the ACE Editor this is called 'FoldOther' and it is bound to hotkey Alt+0 by default. Try it out here (put your cursor inside of a function block and press Alt+0; Shift+Alt+0 then unfolds all). This folding operation is incredibly useful because it allows you to quickly collapse everything except for the block of code you're currently looking at - which lets you focus on a single block of code. Please make all curly braces create a folding block in C-style languages Please include support for region folding in all C-style languages The ACE Editor already has support for this type of folding. This feature should have an option to turn it off, because for every person that loves regions, there is another person who hates them. Also, it would be great to have this for SQL-Server (Microsoft's SQL) mode (once the language is added). I personally created a SQL Server mode for the Ace Editor and I included this feature. Try it here: Select 'SQLServer' for the document in the top left corner. Please make JSDoc style comment blocks foldable in all C-style languages /**
* These comments should produce a fold widget (on the first line)
*/ Note: I see that each language file seems to have its own folding structure. It may be useful to have a way to inherit folding modes because so many modes should share the same C-style folding. |
I have trouble working with large files without code folding, may switch to other editors for a while until vs code gets this |
I would like notepad++ compatible code folding:
|
Important feature indeed. |
Hopefully this will work in all languages for curly braces including PowerShell and Javascript and not only C languages. Comment folding would be nice to. |
A first version of this feature will be on the February release. |
👍 |
Folding function must be in March 31st to have it? |
After update to latest version of VSCode (0.10.10) i found that folding doesn't work for recommended C# comment tags. ( https://msdn.microsoft.com/en-us/library/5ast78ax.aspx ) |
#region folding seems missing. |
Don't understand why Visual Studio Code team not adding this |
Please add #region #endregion feature. Its a must for well management code. |
+1 for #region #endregion, needs to be added! |
And for typescript/javascript: would also be great! |
#region and #endregion would be amazing for JS |
+1 for #region and //#region. |
yes! |
Another request for #region folding here. |
Same here, would love it for C#, TS and JS. |
would like it too 😄 |
+1 for PHP in both Visual Studio and WebMatrix |
even Intellij Idea supports //region folding |
Really wish region folding was implemented in VSCode! |
@pedrorolo Really 5px? |
when you use a small screen it becomes relevant. I have just disabled them by searching for folding in "preferences" |
@pedrorolo I see, glad you solved it. |
Hello i want this for CSS is this implemented yet? I see that the issue is closed. Thanks for making this great editor btw. |
I searched but couldnt find this in the issues. Id love to be able to collapse sections of the code. Any thoughts?
The text was updated successfully, but these errors were encountered: