I would like to show a vertical line, next to the linenumbers, in my visual studio 2010 between parentheses when my courser is between those 2 parantheses.
I alread had that option enabled, but somehow its gone.
edit: is nobody using that feature? one of the very nice things when you are debugging
Is no one using that feature??
Edit: so last push!! there must be a way to see where the space between parentheses starts and ends.
edit: here is an image
EDIT: I still haven't found what i'm looking for. VS is so powerful there must somewhere an option or a plugin. It is really useful when you can see where your { begins and ends }.
Anyone a clue?
I haven't seen the horizontal line feature since 2008. I hated it so I haven't been looking for it either.
You should however be able to see the braces being highlighted when your cursor is on them. If not, perhaps you've changed your theme or possibly some colors in your Options menu.
Here's what you should try:
Tools ->
Options(down at the bottom of the drop-down) ->
Environment ->
Fonts and Colors
Make sure the Show settings for: selector is showing Text Editor.
The one(s) you're looking for are Brace Matching (Highlight/Rectangle).
Attempt to change it to your choosing and see if the changes take place. If not, reset to the defaults and re-check it's enabled.
Also...
Another suggestion that can be handy to get a temporary look at the extents of the body you can hover your mouse just along the margin it will highlight the most nested body. You may have to do some tweaking of your colors to make it vibrant. I use a darker color and have my code block highlighting white. I know it's not what you're looking for but it might be somewhat of a band aid.
Related
The problem is displayed in this image.
Changing the item background color for Highlighted Reference helps a bit but they are still highlighted with boxes around them. In the old versions of Visual Studio it was caused by productivity power tools extension and there was an option to disable it. I do not have productivity power tools extension installed on Visual Studio 2022.
There seems to be options to disable this for languages like c#. Is there a way to completely remove this highlighting in editors for "All Languages"?
There doesn't seem to be a setting that turns it off for all languages, however if you change the RBG values to 30 for all three (if you are using the default dark theme in Visual Studio), you can essentially achieve this, since the highlighting will be the same exact color as the background, thus hiding it. To change these, click the "Custom..." button for both the items foreground and background and set the red, green, and blue values to 30. The rest of the values should automatically adjust.
The problem is, Highlighted Reference doesn't cover everything. You probably will also want to set the same RGB values for Highlighted Written Reference and Highlighted Definition, otherwise some things will still get highlighted.
Here is a .gif showing how this works will all three of these settings set to 30 in a C# code file:
You actually have one more Highlighted setting than my Visual Studio installation (perhaps I need an update) and that is the Highlighted Parameter one. Presumably, that controls the highlight of parameters to methods and such. I would assume you'd want that to also be set to 30 for the RBG values.
Also, you may notice that in the .gif it looks like there is a box around the item my cursor is under - that is because of the Highlight Current Line setting. You can also set that to 30 for the RBG values to achieve a 100% un-highlighted experience, but that might be going a bit extreme!
Every use of any macro names in my projects gets underlined with 3 dots:
When I hover mouse over it , I get a light bulb and small msg box saying that browsing around this identifier may be incorrect and suggest to add this macro to a hint file, which doesn't seem to do anything:
Anyone knows how to get rid of the dots ?
Finally after multiple attempts of "staring at the screen" problem solving method I found a way to turn the dots off. In "Tools->Options" menu navigate to "Text Editor->C/C++->View" and in the drop-down box "Macros in skipped browsing regions" select "none".
Is there a way, either built-in or by third-party extension, to disable triple-click from selecting the entire line while in a text editor? Either my mouse is too sensitive, or I'm inadvertently doing it, but more often than not, clicking a word, then copy / pasting it results in pasting of the entire line -- not my intention and very annoying. Ideally, it could be disabled (aka any click more than 1 just selects the word the cursor is over)
As already stated in the comments the problem is most likely that the word highlighting color is so similar to the color of selected text. So seems like we sometimes deselect a word instead of selecting it. And without a selection Ctrl-C copies the whole line. I had the same issue with JetBrains WebStorm. In Visual Studio for me it was ReSharper.
Changing the color helps. Tools -> Options -> Environment -> Fonts and Colors -> "ReSharper Usage of element under cursor". I made that darker such that selected text is clearly distinguishable.
Is it possible to change the width of the text editor in VS2012 - I've got a fairly wide screen and use fairly small text so I end up with a lot wasted real-estate in the middle of my screen.
I don't want to turn off word wrap - I just want the wrap to start further right on the line. If that makes sense!?
You can set this with HTML in Visual Studio 2012 but there is no global setting and it's missing in quite a few languages.
You can just put another "dummy" window next to the one you are writing in, so the actual editor window will be smaller. You can put it on the left if you want to pan the text to the right, and to the right if you want to shorten the lines.
I actually found the answer elsewhere; VS doesn't appear to provide this functionality but Resharper does. Resharper -> Options -> Code Editing -> C# -> Formatting Style -> Line Breaks and Wrapping -> Right margin (columns)
I put mine to 200 which fixed the issue
I know that this is not what you are looking for, but I believe it solves the same problem. I too have a fairly large screen and try to make use of it as optimally as possible.
I hate tabbing between code or design tabs and try to avoid that as much as possible.
VS has a feature that permits the user to create Horizontal or Vertical Tab groups and ever since I have started using it, I have found it very helpful. These options are present in the context menu by right clicking the tab or in the VS Window Menu (Menus are seen only if the tab groups feature is not active).
I have created a screenshot with Vertical Tab Groups created as shown below. In this example, I have a overview of both the designer and the code view at the same time.
We can use tab groups whenever there is a dependency such as comparing code, redesigning a module, etc. I know it takes a little time to get used to this feature but try it out and see :)
I need to change the highlight color for the matched braces in VS2010.
I have tried the following setting but it doesn't work at all.
Any suggestion is welcome.
Thank you
From Microsoft
...There are two Fonts and Colors options for brace matching: "Brace
matching (Highlight)" and "Brace matching (Rectangle)". Not all
languages use both settings. Each language implements its own brace
matching functionality, which can lead to inconsistencies in which
options are used in which language. For example, C#, HTML, CSS, and a
few others do not use the "Brace matching (Highlight)" option at all,
which is why it doesn't do anything when you change it in those file
types. However, "Brace matching (Rectangle)" should still work for C#,
HTML, and CSS, which it sounds like is consistent with your
experience. Some other languages will have the reverse behavior, i.e.
"Brace matching (Rectangle)" will do nothing but "Brace matching
(Highlight)" will work...
Not a good answer, but that's where VS2010 stands right now. Incidentally, when I changed
"Brace Matching (Rectangle)" Background color, it works for me in C++ and C#, if I have my cursor immediately left of an open brace or immediately right of a closing brace.
Good luck.
(tools) (options)
under (environment) (fonts and colors)
show settings for (text editor)
under (display options) there are two brace matching entires
(Brace Matching Highlight) is the one that you want.
Change it, maybe restart vs 2010 for good luck.
I use Visual Assist X for that task. After setting up visual assist for Visual Studio, you can change the bracer match and mismatch color under the display tab in the Visual Assist options menu.
Change Highlighted Reference in Item background dropdown
Watch it, if you use ReSharper, these settings will have no effect.
You first have to enable the Fonts and Colors in the newest ReSharper version.