Ydhem
Ydhem

Reputation: 928

Visual Studio 2012 IntelliSense

I have a small problem with VS2012, I've never used it before so... Here is my problem I have a variable named age. But when I start typing if(age and then press space , VS automatically write "AggregateException" and so on for many other words.

Upvotes: 1

Views: 213

Answers (2)

user3154296
user3154296

Reputation:

You may be interested in enabling Intellisense Suggestion Mode, see here for further information.

You can enable it by pressing Ctrl+Alt+Space while in the text editor. Once you enable it, Intellisense will only auto-complete when you press the Tab key or when you double-click on an item in the list.

This allows you to type full-stops, space characters and other special characters without Intellisense getting in the way (handy for test-driven development)!

Upvotes: 1

BrunoLM
BrunoLM

Reputation: 100381

Typing a word in the wrong context will generate unexpected behaviors.

Make sure that you are typing in the right place.

public class Test
{
    public void Met()
    {
        int age;
    }

    public void Met2()
    {
        age /* invalid scope for age */
    }
}

Upvotes: 0

Related Questions