Interesting feature of Visual Studio 2008

Many times what happens is programmer or developer while writing thousands of lines of code, it is very obvious to forget which line of code was changed last?

Programmer scratching his head

Programmer scratching his head

And one will be like this…. 🙂

To avoid  this confusion Microsoft Visual Studio has came with “Code Changed Highlighter” this is what I am calling it as, don’t know what does Microsoft call it as.

Will dig this further with an example

Start studio, I mean Microsoft Visual Studio 2008,

File -> New -> Project (Cntl + Shift + N)

Creating new project

Creating new project

For this blog I am creating a Console Application (Easy and neat way out), but you can create project of your choice.

Creating Console Application

Creating Console Application

The moment I started coding, there is line on the left side got created with yellow color (Red rectangle shows it all). And it keep on expanding downwards or upwards depending on your coding direction.

Code stated getting highlighted

Code stated getting highlighted

Now then, once you save it, that same code portion will go green. It means that your code is saved.

Code saved

Code saved

Now assuming we are done with our thousands of lines of code and we are also closing the Visual Studio.

We opened the same project second time for some additional work. Now it is very important to track where all we are going to change the code. But the question is h0w?

And the answers is Visual Studio 2008

How? lets see

Open the same project with thousands of lines of code.

Re-opened the same project

Re-opened the same project

Yes, for me as of now this project is with thousands of lines of code 🙂

The moment I will add any new line of code again left region of breakpoints will go yellow.

Adding new line of code

Adding new line of code

And once you save it, it will go green again.

New  code saved

New code saved

So, this way you can keep track of changes made in the code for that opened instance of Visual Studio.

Amazing, instant it?

Hope you will like this little interesting feature of Visual Studio 2008.

Posted in ASP.NET, Programming Language, Sharepoint, Visual Studio, WPF (Windows Presentation Framework) Tagged with: