The interface language of the Visual Studio Code plugin depends on the selected IDE language.
The smart autocompletion mode explicitly supports code autocompletion for the following programming languages and frameworks:
C++
Go
Java
JavaScript/TypeScript
Kotlin
Python
Scala
SQL
Swift
Autocompletion may also work for other languages. For languages that are less represented in public repositories, the number and quality of autocompletion prompts will be lower.
Code Assistant analyzes your code context and provides the following types of suggestions:
Automatic.
User-triggered (Ctrl + Space). In Visual Studio Code, you can also use Ctrl + Enter.
How to work with Code Assistant:
Open the IDE and create a test file named server.cpp with the following contents:
// simple web-server to work with sockets#include<iostream>#include<string>#include<sys/socket.h>#include<netinet/in.h>#include<unistd.h>usingnamespace std;
intmain(){
}
In the int main() section, start typing something, e.g., //create socket. See the Code Assistant suggestion:
When generating a suggestion, the loading icon will appear to the left of the editable code. If generation stops or there is no result, you will see the (no suggestion) icon.
The suggestion indicator is enabled by default.
To enable or disable the indicator:
Visual Studio Code
JetBrains IDE
Click the plugin icon in the bottom-right panel.
In the menu that opens, select Settings.
In the settings window, enable or disable Enable Empty Indicator and Enable Loading Indicator.
In the top-right corner, click and select Settings....
In the left-hand column, select SourceCraft Code Assistant.