Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode: normal word completion

I understand that VSCode has intelisense. But sometimes one only needs a simple completion of a variable name that has appeared somewhere in the same file or in the already opened files. Like what Vim has for Ctrl+o Ctrl+p. Is it possible to do it in VSCode?

like image 908
lang2 Avatar asked Jun 15 '17 05:06

lang2


People also ask

How do I enable autocomplete in VS Code?

You can trigger IntelliSense in any editor window by typing Ctrl+Space or by typing a trigger character (such as the dot character (.)

How do I turn on autocomplete in Visual Studio?

The suggestion list of Basic completion appears when you press the default Visual Studio IntelliSense shortcut Ctrl+Space . If necessary, you can always return to the Visual Studio's native's IntelliSense. To do so, select Visual Studio on the Environment | IntelliSense | General page of ReSharper options ( Alt+R, O ).

How do I turn on IntelliSense?

You can enable or disable particular IntelliSense features in the Options dialog box, under Text Editor > C/C++ > Advanced.


1 Answers

Edit: from vscode 1.51 it should be possible:

"editor.wordBasedSuggestionsMode": "currentDocument" | "matchingDocuments" | "allDocuments"

It is possible now with the extension: All Autocomplete.

It auto-completes based on words in all opened files.


Related issue https://github.com/Microsoft/vscode/issues/5312

like image 165
Alex Avatar answered Oct 24 '22 22:10

Alex