Posts

Showing posts with the label Visual Studio

Visual Studio 2008 - The good part

... whatever I said in the precedent post, at least VS9 let us extend it and create macros as well. Unfortunately, I could not create a macro in C# so I had to use a language that I do not like at all, Visual Basic, and the result is an alpha macro that allows us to create "more clever" regions and outline for brackets as well. More clever regions There is another macro that goes around since Visual Studio 2005 but it has some bug and/or problem with nested regions plus it does not allow us to write directly in the region what the region is about //#region whatever ... //#endregion --- to obtain //#region whatever[...] --- instead of // another "boring" comment over the region [...] At the same time that macro put every region, nested or not, at the beginning of the line. It is not such a big problem, but I prefer this version. Brackets outline This is absolutely experimental and there are hundreds of problems, but for a couple of files it is doing its job. What...

Visual Studio 2008 and JavaScript: the worst couple ever

We are using Visual Studio 2008 Team Edition at work and it is great for our C# plus SQLServer application, but I am working entirely with JavaScript and every time my files grow up " too much " I start having headache scrolling up and down thousands of line of code. A basic function that even a small editor like Notepad++ has, the plus/minus sign to close functions closures, does not exists. You should try to create your own macro, in VB "of course", and call it every time. As alternative, I added the file extension js in the option with HTML Editor as default editor to let me do something like this //#region MyConstructor <script> ... my code //#endregion </stript> Above start and end comment allows me to close code blocks and everything inside will be highlighted because the editor consider it as an HTML JavaScript tag: it's true, HTML has open/close blocks while JavaScript does not. The " fantastic " debugger is nothing that better tha...