I'm encountering a very strange problem in Visual Studio 2005 in my code-behind pages. when I try and add new methods the code does not line up in the normal code structure.
The problem occurs with some code that a 3rd party company developed. This does happen if I add a new project or work with an existing code I have developed.
The problem is hard to describe. I'm not sure how to explain what is happening.
For example, take the Page Load method. It would be lined up like this:
protected void Page_Load(object sender, EventArgs e)
// Code goes here
// The code is not lined up with the above method
// It is aligned two spaces to the right
// ??????? what is going on?
If I try and add a new method, I enter a line break, but the cursor lines up 2 spaces further in, like invisible comments have been added or something like that? It is very strange. The method isn't recognized in the intellisense.
So, I have to backspace each line of code that I add so it falls into the normal code structure alignment. Then the method will be recognized.
Does anyone know what is going on? Can anyone help? I'm pulling my hair out over this.
Any help is appreciated.