I searched but couldnt find this in the issues. Id love to be able to collapse sections of the code. Any thoughts?
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
Example: In Visual Studio _(not visual studio code)_ - curly braces only produce a folding widget for classes and members, which is why this plugin exists. The problem is the plugin has major performance issues in large files, which is something that can be avoided if the proper folding support is added natively. Note: This should be supported in ALL C-style languages including: C, C#, JavaScript, Java, etc...
Please include support for region folding in all C-style languages
Regions are officially part of C#, but not other C-style languages. However, they are useful in other 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:
//{ This folds
code here
//}
Important feature indeed.
With Netbeans, we can also add <editor-fold>
tags to create a folding block.
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.
A first version of this feature will be on the February release.
:+1:
Folding function must be in March 31st to have it?
@hulang See the release dates here https://github.com/Microsoft/vscode/issues/2616
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 )
Don't understand why Visual Studio Code team not adding this #region #endregion
feature still after so many builds of theirs. Its a must for their product.
Please add #region #endregion feature. Its a must for well management code.
+1 for #region #endregion, needs to be added!
And for typescript/javascript:
//#region
code here
//#endregion
would also be great!
+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.
@ColacX The current folding only depends on indentation and is not language aware.
The request for language aware folding is #3422
Most helpful comment
Don't understand why Visual Studio Code team not adding this
#region #endregion
feature still after so many builds of theirs. Its a must for their product.