Christofer Eliasson
Christofer Eliasson

Reputation: 33865

Is it possible to highlight certain rows of code in visual studio?

At the moment I'm working in a file with perhaps 1000 lines of code (HTML/JS). Lets say that there are three or four of these lines that are extra important, that I keep coming back to, to look up things. I find it a bit frustrating that it takes a few seconds every time I want to find one of these rows while scrolling through the code.

If it had been C# code, I could have set a break point at each important row, to make it easier to spot them when I scroll through the code, but that is not possible since this is an HTML-file.

Is there some way to highlight certain rows in Visual Studio, to make it easier to find them while scrolling through the code?

Upvotes: 0

Views: 167

Answers (2)

Derek
Derek

Reputation: 8628

How about highlighting these important areas with well named Regions?

http://msdn.microsoft.com/en-us/library/9a1ybwek(v=vs.71).aspx

Upvotes: 0

Jan Kratochvil
Jan Kratochvil

Reputation: 2327

You could use the bookmark functionality. Some info can be found here.

It can be a bit cumbersome at first, but once you learn the appropriate shortcuts to bookmark / unbookmark / go to next bookmark it will make navigating your code a bit easier.

Upvotes: 2

Related Questions