code-regions

Code regions not allowed within method bodies in VB.NET?

让人想犯罪 __ 提交于 2019-12-21 07:06:06
问题 Note : This "feature" has now been added to Visual Studio 2015 but the question will hold a while since not every developer or every dev shop gets access to the latest and greatest IDE as soon as it comes out. ORIGINAL QUESTION: Normally I wouldn't "need" or even consider a ridiculous feature such as code regions within method bodies but: I'm refactoring VB.NET code where methods routinely run five hundred lines of code or more and the references are so tightly coupled that the code defies

Can you set some sort of custom code folding in Netbeans like in Visual Studio

为君一笑 提交于 2019-12-04 09:17:44
问题 When working on C#, I often do this: #region Properties public int Property1{get;set;} ...(more properties) #endregion This makes Visual Studio add the option to fold the code inside the region. Offcourse, you can use regions for anything, it's not limited to Properties or anything at all. I'm wondering 2 things: Is this just something to make Visual Studio add code folding to an area of the editor or does it affect the compiler? Can I do something similar in Netbeans? 回答1: (In Netbeans at

Code regions not allowed within method bodies in VB.NET?

流过昼夜 提交于 2019-12-03 22:05:33
Note : This "feature" has now been added to Visual Studio 2015 but the question will hold a while since not every developer or every dev shop gets access to the latest and greatest IDE as soon as it comes out. ORIGINAL QUESTION: Normally I wouldn't "need" or even consider a ridiculous feature such as code regions within method bodies but: I'm refactoring VB.NET code where methods routinely run five hundred lines of code or more and the references are so tightly coupled that the code defies simple refactoring such as method extraction. And that's why I thought I would try regions within a

Regions/code collapse in Javascript in Visual Studio 2010

人走茶凉 提交于 2019-12-03 05:30:39
问题 Is it possible to create code regions in JS files in Visual Studio 2010? This method works in 2005, but I can't get working in 2010. 回答1: Here is a very cool VS2010 extension for Javascript and CSS outlining http://jsoutlining.codeplex.com/ 回答2: Microsoft now has an extension for VS2010 that provides this functionality: JScript Editor Extensions 回答3: The JSEnhancements plugin for Visual Studio addresses this nicely. 回答4: Advanced JavaScript Outlining for Visual Studio 11 is now available for

Regions/code collapse in Javascript in Visual Studio 2010

孤者浪人 提交于 2019-12-02 17:53:07
Is it possible to create code regions in JS files in Visual Studio 2010? This method works in 2005, but I can't get working in 2010. Here is a very cool VS2010 extension for Javascript and CSS outlining http://jsoutlining.codeplex.com/ Microsoft now has an extension for VS2010 that provides this functionality: JScript Editor Extensions The JSEnhancements plugin for Visual Studio addresses this nicely. Advanced JavaScript Outlining for Visual Studio 11 is now available for VS2012 through the Extension Manger, or at the URL http://visualstudiogallery.msdn.microsoft.com/4be701d8-af03-40a4-8cdc

how to implement regions/code collapse in javascript

末鹿安然 提交于 2019-11-26 23:49:09
How can you implement regions a.k.a. code collapse for JavaScript in Visual Studio? If there are hundreds of lines in javascript, it'll be more understandable using code folding with regions as in vb/C#. #region My Code #endregion Blog entry here explains it and this MSDN question . You have to use Visual Studio 2003/2005/2008 Macros. Copy + Paste from Blog entry for fidelity sake: Open Macro Explorer Create a New Macro Name it OutlineRegions Click Edit macro and paste the following VB code: Option Strict Off Option Explicit Off Imports System Imports EnvDTE Imports EnvDTE80 Imports System

how to implement regions/code collapse in javascript

北城余情 提交于 2019-11-26 08:49:29
问题 How can you implement regions a.k.a. code collapse for JavaScript in Visual Studio? If there are hundreds of lines in javascript, it\'ll be more understandable using code folding with regions as in vb/C#. #region My Code #endregion 回答1: Blog entry here explains it and this MSDN question. You have to use Visual Studio 2003/2005/2008 Macros. Copy + Paste from Blog entry for fidelity sake: Open Macro Explorer Create a New Macro Name it OutlineRegions Click Edit macro and paste the following VB