Resharper braces - resharper

In resharper 4.5 for VS2008, is there a way to get a solid straight line to be shown between starting brace and ending braces.

You can add that feature to Visual Studio by installing CodeRush Xpress (it's compatible with ReSharper). Free download is here:
http://www.devexpress.com/crx
That feature is called Structural Highlighting and you can see a screen shot of it on this page.

ReSharper > Options > Editor > Highlight matching delimiters...

In VS2013 this feature is available in the Productivity Power Tools add-in. Once installed it is controled from Tools-Options-Productivity Power Tools-Other Extensions-Structure visualizer options-Show code structure in the editor.

Related

Disable Highlighting of Strings in Visual Studio

All of my strings in visual studio are highlighted (see screenshot)
This makes it very difficult when i'm actually highlighting something or using the find functionality.
I cannot find an option for this anywhere, anyone know how to disable this?
This is Visual Studio Community 2017
Go to Tools > Options > Fonts and Colors. On the Display Items, find String and change the Item background color to whatever the color of your editor background is.

Auto collapse to definitions visual studio 2012

I have been looking high and low for a way to auto collapse to definitions in visual studio 2012 when you open a file.
I found a solution for VS2010 here Any way to auto collapse to definitions whenever you close a document? but that requires a Macros which has been taken out in VS2012.
Any Solution would be much appreciated!
Yes, macros are definitely gone from Visual Studio 2012.
Not exactly what you requested, but the Ctrl-M, Ctrl-O keyboard shortcut is fast.
Third party tools like CodeRush! or Resharper may help here. I know that CodeRush is very customizable.
You can also create your own Visual Studio Extension. Extensions are more powerful than macros, but have a bit of a learning curve.

How do I get line ending glyphs in Visual Studio 2012?

Is there any way to get line ending glyphs in Visual Studio 2012?
The following screen shot (from notepad++) show what I want (the CR LF part):
You might want to check out this extension: End of The Line by Rolf W. Rasmussen. The current binary version displays CR and LF identifiers at the end of the line all the time, but the source version ties it into VS's "View Whitespace" menu option.
It's for Visual Studio 2013, but it's open source and should be fairly straightforward to recompile as a VS2012 compatible plugin
(You might need to change the references - the VSSDK packages on nuget can be really useful here. You'd need VSSDK.CoreUtility and VSSDK.Text. In fact, that might be worth a PR regardless...)
Nope, Visual Studio has no feature to show End of Line Markers. (Reference)
But it gives the ability to show Whitespace with (Ctrl + E + S) which is adressed here.
If any incosistencies are included, VS should suggest to fix the document automatically.
But if you need to do actions other than that, I recommend using notepad++ as described by Hanselman here
If you think Visual Studio should include this feature, you better vote for this request
Edit:
By the way, VS shows glyphs for wrapped words by enabling through:
Tools -> Options -> Text Editor -> All Languages -> Show visual glyphs for word wrap
Like:

Visual Studio Tab out of brackets/quotes?

I'm primarily a Java developer and I've recently started developing apps for Windows Store using Visual Studio 2012. When I started coding several years ago, I used Visual Studio 2008. I didn't think anything of certain features until I started doing Java in Eclipse. Anyway, in Eclipse, I can press "tab" to jump out of quotes or brackets. The only Visual Studio 2012 feature I could find remotely similar to this was included in Visual Studio 2012 Productivity Power Tools. It allows me to do Shift+Enter anywhere on a line, and it'll add a semicolon to the end of the line and go to the next one. While this is useful, it's not ideal in many situations. I am also using Resharper and have found no such setting in there. Thanks
The easiest way to jump out of the automatically inserted quote or bracket is to type the closing quote or bracket, i.e.: " followed by " or ( followed by ). You could also use the right arrow key. If you have resharper then you can use CTRL+SHIFT+ENTER to auto complete the current statement.
If you are a fan of keyboard shortcuts to move around your code then try the VsVim Extension.

Ctrl-W stopped working

I have Resharper installed and somehow CtrlW no longer "extends the selection". I tried assigning it to Global / Resharper.ExtendSelection in Tools -> Options -> Keyboard but it still only selects one word.
I have found the resolutions. Go to ReSharper -> Options -> Visual Studio Integration -> Keybord Shortcuts --> ReSharper or IntelliJ IDEA.Next time when you press CtrlW, Visual studio will ask you about shortcuts. You will choice ReSharper shortcuts and that is it.
A solution i found was to reconfigure keys at the Text Editor level (they are defined at Global level and for some (annoying) reason Resharper overrides this.
So: (Tools->Options->Environment->Keyboard), set Use new shortcut to Text Editor and redefine your shortcuts.
Tip: Look for your CtrlW favorites by writing view. at Show commands containing.
I needed View.ErrorList (CtrlW, CtrlE), View.Output (CtrlW, CtrlO) & View.SolutionExplorer (CtrlW, CtrlS)
HTH
p.s.
I even disabled Resharper and it still won't work...
A question and a suggestion:
Does Resharper | Edit | Extend Selection work?
Reapply VS integration via Resharper | Options | Visual Studio Integration | Apply Scheme
For me the reason was a silly one:
My C# file was removed from the project accidentally, so resharper no longer regarded it as C# code and so there were no syntactical elements to extend the selection to. In other files it worked ok.
In my case (Visual 2019)
go to Tools\Options\Environment\Keyboard
set Apply the following additional keyboard mapping scheme to Resharper (Visual Studio)
I had the silliest reason.
after the resharper installation I didn't apply my license or started the evaluation.

Resources