nCode: AI-Powered Coding Assistant
nCode is an advanced AI-powered coding assistant designed to enhance developer productivity. It integrates seamlessly into Visual Studio Code, offering features like inline code completions, code explanations, test case generation, documentation generation, and commit message suggestions. With nCode, you can streamline your development workflow and focus on writing high-quality code.
Getting Started
Install gcloud SDK
Skip this step if you already have Google Cloud SDK installed.
Follow the installation guide to set up the Google Cloud SDK.
GCP Setup via CLI
- Initialize SDK: Run
gcloud init
to log in and configure your project.
- Authenticate: Use
gcloud auth login
or gcloud auth application-default login
if needed.
- Set Default Project: Run
gcloud config set project YOUR_PROJECT_ID
.
- Replace
YOUR_PROJECT_ID
with niveus-ncode
- Verify Configuration: Check settings with
gcloud config list
.
Useful Commands
- List projects:
gcloud projects list
- Switch project:
gcloud config set project ANOTHER_PROJECT_ID
Features
1. Inline Code Completions

nCode provides intelligent inline code completions as you type, helping you write code faster and with fewer errors. It leverages the power of Vertex AI to generate context-aware suggestions.
Usage:
- Start typing in the editor, and nCode will suggest inline completions.
- Press
Tab
to accept the suggestion or Esc
to dismiss it.
Keybindings:
Tab
: Accept inline suggestion.
Ctrl+Shift+E
: Open inline completion settings.
2. Code Explanation, Code Analysis and Queries

nCode can explain selected code snippets using AI, making it easier to understand complex logic or unfamiliar code.
Usage:
- Select the code you want to explain.
- Right-click and choose Explain in nCode.
- The explanation will appear in the sidebar.
Example:
- Select a function or block of code, and nCode will provide a detailed explanation of its purpose and workflow.
3. Test Case Generation

Automatically generate unit test cases for your code with nCode. This feature helps improve code quality by creating comprehensive test cases.
Usage:
- Select the code for which you want to generate test cases.
- Right-click and choose Generate Test Case.
- The generated test cases will appear in the sidebar.
Example:
- Select a function, and nCode will generate unit tests with mocked dependencies.
4. Documentation Generation

Generate detailed documentation for your code in markdown format. This feature is ideal for maintaining well-documented codebases.
Usage:
- Select the code you want to document.
- Right-click and choose Generate Documentation.
- The generated documentation will appear in the sidebar.
Example:
- Select a class or function, and nCode will generate a markdown-formatted explanation of its workflow and execution process.
5. Commit Message Suggestions

nCode can analyze staged changes in your Git repository and suggest concise, meaningful commit messages.
Usage:
- Stage your changes in Git.
- Press the star icon on top of the Git Commit input box
- The suggested commit message will be prefilled in the Git input box.
Example:
- Stage changes, and nCode will generate a commit message like:
Fix: Resolve null pointer exception in user service
.