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?
You can trigger IntelliSense in any editor window by typing Ctrl+Space or by typing a trigger character (such as the dot character (.)
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 ).
You can enable or disable particular IntelliSense features in the Options dialog box, under Text Editor > C/C++ > Advanced.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With