Visual Studio 2015 Javascript Outlines Too Much

Visual Studio 2015 fonts to describe all multi-line JavaScript code. I have such simple code:

$(document).ready(function () { var x = { test1: 1, test2: 2 }; if (1 == 1) { // this is a test } }); 

Visual Studio 2015 describes it this way when I Ctrl+k, Ctrl+O : enter image description here Is it possible to disable selection inside functions? I just want to highlight at the function level.

+5
source share
1 answer

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

+6
source

All Articles