What's the keyboard shortcut in visual studio code to complete statement like in IntelliJ?

Viewed 4128

Is exist keyboard shortcut to complete statement in current line in visual studio code, like in IntelliJ?

The complete statement is that Complete Statement, I can enter Shift + Ctrl + Enter to complete current line smartly.

The visual studio code support this function?

2 Answers

Complete Statement will help to some extent. However, this extension lacks one feature - going inside the block. For example - for a if block if you use the shortcut to autocomplete the statement the cursor will still stay on the same line unlike Jetbrains IDE where it intelligently moves to the correct line.

Those who want to get the same feel as Jetbrains IDE's complete statement feature they can customize the keyboard shortcut like this:

Shortcut 1: Ctrl+ Shift+ Enter (to complete current statement)

Shortcut 2: Ctrl+ Shift (to go to next line)

It's just some extra keystrokes but still you can at least get it done!

You probably looking for IntelliSense feature of VSCode.

If you select the language that you coding with it (at right of bottom bar) and press ctrl + space, auto-complete & suggestion menu (according to your selected language) was shown.

Update: this extension for VSCode is probably what you want.

Related