CodeComplete is an AI coding assistant that is designed to streamline your development process and generate code suggestions to enhance your productivity.
Features
CodeComplete helps you write code faster by suggesting completions as you type.
The suggestions provided by CodeComplete are generated based on common coding patterns found in permissively-licensed, open source repositories and, optionally, your organization's codebase.
CodeComplete can autocomplete entire lines or blocks of code.
Usage and Tips
Getting Started
Note: You currently need an organization subscription in order to use CodeComplete. For more information, please reach out to info@codecomplete.ai
Install the Extension: Locate CodeComplete in the Visual Studio Code Marketplace and install it.
Sign In: After installing the extension, access the command palette (View > Command Palette or cmd/ctrl+shift+p), and type CodeComplete: Sign In to initiate the authentication flow.
Sign Out: If you wish to sign out of CodeComplete, go to the command palette and type CodeComplete: Sign Out.
You can authenticate with your organization's SSO provider or your email address. Provide your organization ID or subscription key to get started. To retrieve your org ID or subscription key, please contact your administrator.
Using CodeComplete Completions
Start Typing Code: After signing in, just start writing code as usual in your VS Code editor. CodeComplete will automatically start providing completion suggestions as you type.
Using Suggestions: The suggestions from CodeComplete will appear as gray, italicized text. Simply press tab to accept, or continue typing to generate more suggestions.
Accepting Suggestion word by word:: If you wish to accept parts of the suggestions word by word, press command+RightArrow on Mac OS or ctrl+RightArrow on Windows.
Accepting Suggestion line by line:: If you wish to accept parts of the suggestions line by line, press command+shif+RightArrow on Mac OS or ctrl+shift+RightArrow on Windows.
Using CodeComplete with Intellisense
If you have Intellisense turned on in your VS Code environment, CodeComplete will incorporate the Intellisense suggestion directly (so that CodeComplete completions will always start with the Intellisense output). As you scroll through Intellisense suggestions, CodeComplete will update its completions to reflect the Intellisense output.
Some users find that Intellisense does not always give the most useful output, and CodeComplete works better without Intellisense. To do this:
Open the settings.json file by entering the command Preferences: Open User Settings (JSON) in the VS Code Command Palette.
Launch Chat: You can launch the chat window by clicking the CodeComplete icon in the left side panel or using the right-click menu in a code editor.
Using selected code: When you highlight a block of code in your editor, CodeComplete will include that code block in your chat context. It also parses the selection and extracts relevant files and code from your workspace so that it better understands your query.
If you do not highlight code, CodeComplete will not incorporate information from your workspace into its responses.
Keep conversations short and succinct
Create a new chat for every new topic. This helps keep CodeComplete focused and gives more relevant responses.
We currently only support chats with up to 16 messages. If you’d like to continue the chat, please include the relevant context into a new chat.
Due to infrastructure and model architecture constraints, we currently only support conversations with a maximum of approximately 10,000 total words. We are working to increase this limit.
Known Issues
Please report any bugs or issues encountered while using the extension. Your feedback is appreciated.
Future Plans
CodeComplete is under active development, with new features and enhancements being rolled out over time. Your suggestions and feedback are welcomed for improving the CodeComplete experience!