Visual Studio - Background Highlighting - visual-studio

In notepad++ there is a function to highlight specific parts of code with a background-color. This is very usefull when the code grows up. Is there anything equal for Visual Studio (using the community-version here).
Here's the function of notepad++:
Would be seriously very handy having this kind of highlighting possible in Visual Studio. Google wasnt a help so far. I mean, instead of searching for code 10% of the time I could better invest it into coding itself.
Thanks very much!

look at Tools-> Options-> Fonts and Colors -> Select Show Setting For and change Dispay Items to Highlight current line.
take care.

Related

Disable suggestions list auto-resize on Visual Studio 2019?

In Visual Studio 2019, how can someone disable the auto-suggestion list being auto-resized?. This:
It is very very annoying when navigating through the suggested members and you miss-click the vertical scrollbar or another point inside the list due the width was auto-resized... this feature is not well-done for the visual sense of the human being, it is not productive for me.
I can understand the intention is to not occupy much visible area in the text editor when the list contains long member names but that logic is absurd because the list width will be sized to its maximum width if you want to pick that long member name, so... totally useless and annoying for me.
Disable suggestions list auto-resize on Visual Studio 2019?
I am afraid that you cannot get what you want in this issue so far. And VS IDE does not have such option to control it so far.
The purpose of the automatic adjustment of the scroll box is to facilitate the user to visually see the full name of the method and then confirm and use it. It is from the perspective of the convenience of developing code.
According to your needs, you need a better visual experience and the best suggestion is to add an option on VS IDE to force maintain the size. So we recommend that you could suggest your feature on our User Voice Forum
In addition, when you finish writing such feature, you can share the link here with us and anyone who is interested in this will vote for you so that it will get more attention from Microsoft.
Hope it could help you.

Better color coding for visual studio (2013)

I'm learning both Java and C# right now. I started with Java first, back in august. The class I'm using uses BlueJ as a compiler. BlueJ has this cool color coding, where it's not just key words or such, the background changes based on what exactly you're typing in.
(Because I'm terrible at explaining things, it looks like this: http://imgur.com/HvhJUgY)
It's made it so easy on my eyes. Now that I've started coding in C#, my eyes can't seem to adjust back to not having the colors. I find myself getting lost in where an if statement begins and ends, and end up having to put ridiculous amounts of space and comments between code to help me follow it better. Does Visual studio have any options to do this, or do I just have to suck it up and learn to adjust?
The colour coding is in the Fonts and Colors options. To get there select Tools/Options. In the dialog, select Environment/Fonts and Colors. For the code, you can set the options in the text editor but you can do it for all the other windows in visual studio too.
Solution:
You can download an extension. In Visual studio code, click on the button that has four squares on the right hand side of the VS code's window. Then, in the search bar, search for "Bracket Pair Colorizer 2." This extension should aid your vision when looking at code. Here's an example
picture. Also, this extension is customizable, letting you add any color you'd like to resemble different types of lines of code.
Settings
To customize your extension, under the extension name you will find a settings dial, similar in shape to the windows settings logo. Click on that, and then click on "Extension settings". From there, you have access to many useful settings.
If this solution has solved or helped you, please mark it as an answer and upvote it. Thanks!

What color is that? Building a color theme for Visual Studio

When customizing my Visual Studio color scheme I am often confounded by the "Fonts and Colors" area.
Often, I want to change a specific color, say: the color used for TODO lines, but I need to read through 100s of color names just to figure out what that is. Often I am unable to figure what what color is what.
Is there any documentation out there that lists which colors are which?
Or even better, is there a plugin that allow me to highlight text in the editor and change the scheme of the selected text (figure out what color/s it is)?
I totally agree that this list is messy.
I personally find the Studio Styles page helpful to create Visual Studio color schemes.
If you click on Create a scheme and hover over the different code elements it will show you a tooltip with the naming of that item to find it in Visual Studio (like Keyword, User Types(Delegates), Brace Matching(Rectangle) etc.):
Of course you could also just build the complete theme then on their page and export it. It also provides an import functionality to change your pre-existing Visual Studio scheme directly there.
Anyhow, I would also love to have an extension to do so directly in Visual Studio ;)
Nice question.
I think the answer is no.
Point it out at the place where they monitor.

Rockscroll or Metalscroll for Visual Studio 2010 (Minimap)

Has any one found a replacement for Rockscroll or Metalscroll for Visual Studio 2010?
I miss it so much that I looked into making one my self but only have word highlighting working and a place holder scroll bar and seems to be much harder than I thought it would be. I'm happy to share what I got if someone is interested in helping.
The Productivity Power Tools extension for VS2010 just added an "Enhanced Scrollbar"!
To enable the minimap go to Tools->Options->Productivity Power Tools->Enhanced Scroll Bar and check "Full map mode". Optionally you can assign the background color and highlighted region.
Just tried ProgressiveScroll and it looks and feels like the original MetalScroll; it also works in Visual Studio 2012!
A user named Kryo at the "Sins of solar empire" forum have made a pretty good imitation of MetalScrollbar for VS 2010, called MetalMargin. Available here. Just installed it, and it seems to work pretty well, although highlight on double click is not yet implemented.
David Pugh released a version of his Structure Margin, which serves a similar purpose. His All Margins extension combines a bunch of the other smaller extensions in the same vein.
It's not exactly the same, but I find the structure margin to be an interesting way to visualize the entire code file.
I haven't tried it myself yet but AllMargins looks really nice. Whoops you already linked it Noah Richards. Sorry.
The code is also available for the OverviewMargin - I haven't tried it at all, but it may be a good place to start from if you want to roll your own.
Did You try RockMargin ?
http://visualstudiogallery.msdn.microsoft.com/1b0d7360-40dd-447e-8bef-90e2cf52f683
This is useful
For anyone looking for a replacement for just the Highlighting part of RockScroll, the free plugin "Highlight all occurrences of selected word" does exactly that.

Can I change the Visual Studio text editor's cursor?

The tiny text entry cursor in the Visual Studio 2005's editor is driving me nuts. I'd ideally like to be able to highlight (say in yellow) the entire line that I'm currently on, but I'll settle for just making the cursor bigger and/or a different colour. Any help gratefully received!
CodeKana allows you to highlight the current line among other nice features. AFAIK Visual Studio has no built-in support for highlighting or otherwise making the current line obvious.
Under Control Panel, Personalization, Choose Mouse Pointers, try different color schemes/pointers for the Text Select cursor, "Windows Inverted (system scheme)" seems to work very well for me.
I found this solution here:
http://social.msdn.microsoft.com/forums/en-US/vssetup/thread/3b131a04-9a51-42c9-b69e-73e6e70c15a7

Resources