views:

1822

answers:

4

I have a strange bug in the Visual Studio text editor. All my blank spaces are replaced by a "."

public class Person
{
  int age;
}

looks like this

public..class..Person..........................
{..................
..int age;...................
}.....................

I reset the settings to default. Didn't work. I also re-installed VS2008. Still didn't work. What's the error?

+2  A: 

Looks like you have the view white space option enabled. Go to Edit -> Advanced -> and uncheck "View Whitespace"

JaredPar
where is View->Advanced in VS2008, i am unable to find it
swapna
@unknown, sorry it's Edit and not View. I get the two mixed up.
JaredPar
Edit -> Advanced, not "View -> Advanced"
1800 INFORMATION
I am sorry, but I am unable to find Edit-> Advance as well.
swapna
@unknown, what version of visual studio are you using?
JaredPar
VS2008 is the version which i am using
swapna
+13  A: 

http://www.carlovella.com/index.php/2007/08/18/tips-and-tricks-visual-studio-whitespace/

Visual Studio is configured to show whitespace.

press Ctrl+R, Ctrl+W.

Burke
Or Cntrl+E,S if you are using the C# Keyboard mappings.
Simeon Pilgrim
superb.. it workss.. i am so happy...
swapna
+1  A: 

Thanks, I have got the same problem and resolved with

press Ctrl+R, Ctrl+W.

amol
A: 

~ FOR VISUAL STUDIO 6 ~

use: ctrl+shift+8 to toggle on/off.

(or manualy go to: Edit> Advance > "View Whitespaces")

goodluck!

mehatzri