How do I get line ending glyphs in Visual Studio 2012? - 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:

Related

Android Studio 0.8.2: Remove Vertical Line Break

Been searching through the editor settings for quite a while but I can't figure out how to turn off the vertical line break in Android Studios 0.8.2. Driving me crazy!!!
It was driving me crazy as well. For older versions (like 0.8.2), Open the Options and uncheck:
Editor -> Appearance -> Show right margin
More recent versions use:
Editor -> General -> Appearance -> Show right margin
AS 3.x:
Editor -> General -> Appearance -> Show hard wrap guide
With Android Studio 1.2.2
File > Settings > Editor > General > Appearance
Or you can just write in the search box of Settings: "right margin"
In Android Studio 1.1.0:
File > Settings > Editor > Appearance > Show right margin (uncheck)
update:
AS 3.x:
Editor -> General -> Appearance -> Show hard wrap guide
In Android Studio 3.1.2, Show right margin is replaced by Show hard wrap guide. (I don't know in which release, this change rolled-out)
Uncheck highlighted option and save. The vertical code line indents will be gone.
File > Settings > Editor > General > Appearance > Code Style > Hard Warp at
Even I'm afraid of down votes but I don't understand why you guys want to hide this line, don't you think it's really useful ?
It helps us know when we should make a new line to match coding convention (code-line width). And the short code-lines (max 80-120 characters) make your code:
Readability
Easier to review code before committing it to the repository (without horizontal scrolling).
Easier to track changes of the committed-history (without horizontal scrolling).
Work with two files at a time (Split vertically in Android Studio) (without horizontal scrolling).
This unbelievably annoying line is the default in various editors. Netbeans, Eclipse, LiClipse, VS Code, and now Android Studio Chipmunk 2021.2.1 Patch 1 for Linux 64-bit.
I had to click on File > Settings > Editor > General > Appearance and remove the checkbox on Show hard wrap and visual guides (configured in Code Style options).
I remember this used to be called a print margin or something in Netbeans. This vertical 80 character limit line is a tad hard to find in the IDE settings and often difficult to search the internet for the correct settings to disable it too. The variety of answers on this page shows how much the Android SDK team has changed the IDE too.
People have discussed the relevance of such a vertical line here, here and on various other websites. Since the percentage of people who hate it are lesser than the percentage of people who like/tolerate it, I guess IDE's are going to continue keeping it as a default.I wouldn't mind it if that line's colour was at least a lot more subtle.
This very annoying vertical line that you will find with the android studio chipmunk release by default. There is no easy way to disable it as it is difficult to find.
It is under
Preference->Editor->General->Appearance
Uncheck []show hard wrap and visual guide(Configure in Code Style option)
That works on chipmunk release.

Change TODO item color in Visual Studio 2012 with Resharper 8

After installing Resharper 8 on Visual Studio 2012 my TODOs are now a retina-searing blue of which this screenshot does not do justice:
I've found similar questions here and here they don't seem to apply to VS2012 and/or RS8, as there is no "Resharper Todo Item" nor any other Resharper items under the Display Items for Fonts & Colors.
Just to post a possible workaround if somebody has the same behavior - apply actions from the following article. It looks oddly but works.
Close all Visual Studio instances
Open C:\Program Files (x86)\Microsoft Visual Studio {VS
version}\Common7\IDE\Extensions\extensions.configurationchanged file
Type anything there
Save the file
Open VS and check Fonts and Colors in Tools | Options | Environment
Navigate to environment settings using Visual Studio (Tools -> Options -> Environment -> Fonts and Colors) and change the colour of the TODO items in the text editor. Scroll to the item in the "Display items" list which shows as "Resharper TODO item"
A Visual Studio crash and restart later, Resharper display items are suddenly showing up under fonts and colors. I contacted Jetbrains and apparently this was a verified bug, though that link is now dead which would lead me to believe that they fixed it, but for some reason this answer is still getting upvoted so maybe not.
Maybe the next upvoter can edit this answer or provide a comment with the current state of affairs?
This is not a Win 8.x issue; I am using Windows 7 and encountered the problem when I applied Resharper 8 to VS2013. The link that Alexander posted resolved the problem for me. I did, however, have to copy the file to My Documents, make my edit there (a simple hash symbol) and then copy it over the source location.
Adding an empty line in the file extensions.configurationchanged worked for me.
Visual studio 2013 with Resharper 10

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.

Resharper braces

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.

Resources