Visual studio code collapse all delete11/9/2022 ![]() ![]() I'm always sure to save the class when I've collapsed or expanded a method, even if I've made no other changes, in hoping that it would save the collapsed state, but I don't think this does any good.Īlso, when debugging and the editor hits a breakpoint or piece of code with an error, all code below that point get expanded., not just the method with the error, but all methods. VS Code has a feature called Code Folding that lets you hide sections of code to. Instead, the majority of the time, not every time, as you mentioned, the methods do not stay collapsed after reopening Visual Studio and I spend too much time re-collapsing my code.įor some reason collapsed regions do stay collapsed. The fastest way to remove empty lines from opened document. Often there will be verbose sections of code that clutter the editor. When I clear the code erasing all divs that I will not use such as area chart. Press the + button to add your desired key binding. ![]() VISUAL STUDIO CODE COLLAPSE ALL DELETE DOWNLOADIf it worked the way I expected, it would save time and increase All Start Bootstrap templates are free to download and open source. Open the Keyboard Shortcut by pressing Ctrl + K then Ctrl + S and search for Collapse, you will see the Collapse Folders in Explorer key binding (It is empty by default). It makes it much easier to go back though the code and find the method I need, especially in large classes. I like to keep my methods collapsed primarily for debugging and refactoring purposes. I have been very frustrated by this problem as well, and your post is the first I've found on the internet asking specifically about it. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |