No, you cannot do this, but there is a great web base that will define areas in javascript!
You create an area after the comment, similar to this area # #, and end it // # endregion
So I forgot about using keyboard shortcuts and controlled it manually with the mouse, worked a little more, but I can have βworkingβ areas of the code open and huge pieces are closed, and this allows me to easily change working and non-working regions.
EDIT
The basics of the Internet have changed a lot; I no longer use it. Now I'm using Advanced JavaScript outlining , which does a great job.
EDIT VS2017 Okay, so the above do not work with VS2017, so now I use Mads Kristensen Javascript Regions
source share