Exp, then pressing Enter (supposed you don't have other commands with the same prefix). These commands can be used pretty quickly by pressing the Ctrl Q hotkey and typing Coll resp.
Extension should work with different languages, but if you. No need to select content of the bracket/quote or move your cursor.
Easily swap bracket/quote types, remove them or select their content from within with one command. The opposite command is ExpandRegions and it expands all regions for quick browsing of the entire file. Bracketeer gives you brackets and quotes superpowers at the tip of your fingers. One of them is CollapseRegions and it does exactly that. The Visual Studio extension Productivity Power Tools 2015 from Microsoft has a feature called Quick Launch Tasks that adds new commands to the Quick Launch menu.
#Visual studio shortcuts collapse html how to
I always thought that visual studio should have these 2 shortcuts built directly into a right hand mouse button context menu so that users can collapse and expand their source code more easily instead of remembering another set of shortcuts by heart. Attach a keyboard shortcut to the Collapse All items in Solution Explorer using Visual Studio 2012 - visual-studio-2012 Django manager chain - python How to combine jQueryUI DatePicker Icon Trigger with incoming Bootstrap 3 groups - jquery. And to expand them all again, just press CTRL + M, CTRL + P. (After disabling outlining, use same steps to enable outlinging.) To collapse all classes/functions/subs, press CTRL + M, CTRL + O. They are key combination, once you press Ctrl+M and you can check the status as below, waiting for second key to trigger this function. Right click in editor -> Outlining to find all options. The default shortcut keys in vs are (collapse) is CTRL + M + CTRL + S and (expand) CTRL + M + CTRL + E, you also can use CTRL + M + CTRL + M to collapse/expand it, please check this: Default keyboard shortcuts. These options are also in the context menu under Outlining. (in VS 2013 - Toggle All outlining)Ĭtrl+ M+ P will expand all and disable outlining.Ĭtrl+ M+ M will collapse/expand the current section. Tools -> Options -> Text Editor -> C# -> AdvancedĮxplicitly to collapse all when pressing Ctrl+ M+ OĬtrl+ M+ L will expand all.
In Visual Studio 2017 I have to activate 'Collapse #regions when collapsing to definitions' in If the control elements HTML element is not a button (e.g., an or