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 in real time. The feature analyzes your current code, libraries, and frameworks to provide relevant suggestions as you work.

Why Use It

  • Reduce manual typing and minimize potential errors.
  • Maintain consistency in your coding style, as suggestions align with your existing libraries and code structure.

Prerequisites

  • Install or enable 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

Details

Why do no suggestions appear in the code editor? Make sure WiseGPT extension is active in VS Code and that it is installed or enabled.

Details

What if the suggestions seem inaccurate? Try writing clearer code or comments, and ensure that all relevant libraries or frameworks are imported correctly.

Details

How do I handle performance issues while using Autocomplete? Consider disabling other VS Code extensions that might interfere with WiseGPT, and be mindful of your system resources.