Visual Studio 2012 Line-Number / Outlining Gutter Missing

The parking lot, which runs along the left side of the code display, disappeared from my visual studio 2012 installation. Below is a picture of my current installation, which is missing in the ditch, and the insert on the green border is a correctly working installation from a virtual machine. I uninstalled and reinstalled today; I deleted the contents of both AppData\Local\Microsoft\VisualStudio\11.0 and AppData\Roaming\Microsoft\VisualStudio\11.0 ; I deleted all regent trees HKCU/software/Microsoft/VisualStudio/11.0 and HKLM/software/Microsoft/VisualStudio/11.0 , and also tried to start devenv using the /rootsuffix switch installed on test1, test2, etc., to start it from another location in the registry / application. I checked the option "Enter selection mode when opening files" in "Options" β†’ "Text editor" β†’ "C # β†’" Advanced ".

If I create an application in C ++, then the groove is also missing.

I am completely exhausted, any ideas how I can return it?

Screenshot:

enter image description here

+7
source share
8 answers

I had the same problem and it turned out that the VsVim extension deletes line numbers and adds them only if you write "set number" in your .vimrc file.

+10
source

I just ran into this problem and cleaned up my temporary files .

I noticed that the problem was accompanied by an error that appeared immediately after starting Visual Studio:

Excluded event. This may be caused by the extension.

You can get more information by looking at the file "C: \ Users \ chris \ AppData \ Roaming \ Microsoft \ VisualStudio \ 12.0 \ ActivityLog.xml".

There was an error at the bottom of this log file:

 <entry> <record>711</record> <time>2015/02/26 19:53:19.159</time> <type>Error</type> <source>ProfilesRoamingClient</source> <description>Path.GetTempFileName threw IOException: The file exists.&#x000D;&#x000A;.</description> </entry> 

According to the documentation , Path.GetTempFileName() throws an IOException when all possible names are exhausted:

The GetTempFileName method will throw an IOException if it is used to create more than 65535 files without deleting previous temporary files.

The GetTempFileName method will throw an IOException if there is no unique temporary file name. To resolve this error, delete all unnecessary temporary files.

Path.GetTempFileName() uses the native Windows API function GetTempFileName() to create temporary files. I looked into my temporary folder, and it was really full to the brim with tmpXXXX.tmp files.

I can only assume that some of the setup of these gutters involves creating a temporary file, and since this failed, it cannot go on.

+10
source

for the line number, go to Tools β†’ Options β†’ Text Editor β†’ All Languages ​​→ General β†’ Display.

check line number to enable it.

+3
source

Enter the line number again for all languages off and back .

Tools> Options> Text editor> All languages> General> Display.

You probably thought (like me) that it is already included for all languages. But options mean:

enter image description here

Line numbers for all languages ​​are turned on or off, but one or more languages ​​are different .


enter image description here

Lineamers included for all languages


enter image description here

Line numbers for all languages ​​are disabled

+2
source

I had a similar problem, but for markup files.

Try to stop the selection with Edit -> Outlining -> Stop Outlining and restart it with Edit -> Outlining -> Start Automatic Outlining .

Also look at this page and let me know if this helped you!

+1
source

Try deleting / resetting data to erase all user data. After you launch VS2012 and turn on the line number parameters in your language settings in Tools-> Options.

0
source

Seeing how the only way around this seems to work like another user; the work I set up is to change all my shortcuts on devenv.exe to:

 C:\Windows\System32\runas.exe /user:VisualStudio /savecred "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe" 

And I stopped the .sln files from opening directly with visual studio and sent them through a batch file that uses a python script to format and execute the runas command.

So .sln files open with vs .bat:

 C:\Python33\py\vs.py %1 %2 %3 %4 %5 %6 %7 %8 %9 

With vs .py runs:

 #python 3.3.0 import sys import subprocess count=0; command = "runas /user:VisualStudio /savecred \"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe" for arg in sys.argv: # Ignore first arg - its this file if(count > 0): command = command + " \\\""+arg+"\\\"" count = count + 1 command = command + "\"" print("") print(command) subprocess.Popen(command) 

Creates a correctly formatted launch as a command and launches a visual studio for the VisualStudio user.

The biggest downside of this so far is that the .sln files attached to the visual studio icon in the taskbar / start menu still run under my account; and I can’t find a way around this.

0
source

Minor change:

I noticed this for some files, but not for others. Line numbers were included in the parameters, and the "Distribution of sources" function was also included. However, it was not visible to some of my files.

Considering the β€œclean up temporary files”, I just closed and restarted Visual Studio (in my case, 2013).

Worked!

0
source

All Articles