Skip to main content

Autocomplete

Autocomplete automatically completes code as you type or write comments.

Overview

Autocomplete speeds up your coding process by suggesting context-aware code snippets or improvements. You see these suggestions in real-time while you work. The feature analyzes your current code, libraries, and frameworks to provide relevant suggestions.

Why Use It

You reduce manual typing and potential errors by using Autocomplete. You also maintain consistency in your coding style, because the suggestions align with your existing libraries and code structure.

Prerequisites

  • Install or enable the WiseGPT extension in Visual Studio Code (VS Code).
  • Ensure your project is open and  Autocomplete is enabled.

How to Use the Feature

Generate Code Suggestions on the Go

1
Open a file in the VS Code editor.

2
Place your cursor in the code editor.

3
Start typing your code.

4
Observe the suggestions that appear in real-time.

Generate Code Suggestions on the Go

Write Comments to Generate Code

1
Type a comment in your code editor describing the functionality you want.

2
View the automatically generated code snippet.

Write Comments to Generate Code

Manage Your Preferences

Enable Autocomplete

1
Go to the VS Code Status Bar in the bottom right corner.

Enable Autocomplete


2
Select WiseGPT.

3
Select Enable Autocomplete.

Enable Autocomplete

Disable Autocomplete

1
Go to the VS Code Status Bar in the bottom right corner.

Disable Autocomplete


2
Select WiseGPT.

3
Select Disable Autocomplete.

Disable Autocomplete

Troubleshooting

Why do no suggestions appear in the code editor?

Make sure the WiseGPT extension is active in VS Code. Confirm you installed or enabled it.

What if the suggestions seem inaccurate?

Try writing clearer code or comments. You can also check if relevant libraries or frameworks are imported correctly.

How do I handle performance issues while using Autocomplete?

Consider disabling other VS Code extensions that might interfere with WiseGPT. Keep your system resources in mind.