Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2013 VB intellisense

Apologies upfront if this is a silly question, but it's annoying me to no end and I can't figure it out.

I'm using Visual Studio 2013 Professional, and I usually code in C# where when using the Intellisense, when I press Enter to select a method or something it adds my selection and I can continue typing on the same line.

But at the moment I'm working on a project which is in VB.NET, and when I use the Intellisense in the same way it puts my cursor in the next line, i.e. I press Enter to select whatever, it adds my selection and starts a new line, so I have to press the Backspace to go back to the previous line. It's so annoying!

Is there a way to change this behaviour so the cursor doesn't go to the next line? I've looked at the settings available in Tools > Options but can't figure it out, and searching Google for anything similar hasn't been successful.

like image 886
arie Avatar asked May 28 '14 10:05

arie


People also ask

How do I get IntelliSense on Visual Studio?

You can manually invoke Quick Info by choosing Edit > IntelliSense > Quick Info, by pressing Ctrl+K, Ctrl+I, or by choosing the Quick Info button on the editor toolbar.

Does Visual Studio support IntelliSense?

Powered by a TypeScript based language service, Visual Studio delivers richer IntelliSense, support for modern JavaScript features, and improved productivity features such as Go to Definition, refactoring, and more.

What is IntelliSense in VB net?

IntelliSense is a code completion tool that is built into Microsoft Visual Studio. It is one of a number of similar tools that allow for intelligent code completion or intelligent text completion on different platforms.


1 Answers

Found it here (paragraph List Members)

You have toggled to suggestion mode instead of completion mode.

You can also change to suggestion mode, in which only the text you type is inserted into the code. For example, if you enter an identifier that is not in the list and press TAB, in completion mode the entry would replace the typed identifier. To toggle between completion mode and suggestion mode, press CTRL+ALT+SPACEBAR or click Edit/IntelliSense/Toggle Completion Mode.

So, either use TAB/SPACEBAR (as I said in the comment) or press CTRL+ALT+SPACEBAR to switch back to completion mode.

EDIT: I've found out that whenever you type Stri (String will show highlighted in the list now) and you press . (dot) it will autocomplete and stay at the same line.

I think your way of doing this in C# isn't possible in Visual Basic.

like image 181
Jevgeni Geurtsen Avatar answered Sep 20 '22 03:09

Jevgeni Geurtsen