LogoLogo
Tabnine websiteContact Sales
  • 👋Welcome
    • Overview
      • Architecture
        • Deployment options
      • Security
      • Privacy
      • Protection
        • Provenance and Attribution
      • Personalization
        • Tabnine’s Personalization in Depth
        • Connection: Global Codebase Awareness
      • AI Models
        • Tabnine's private and protected Universal models
        • Tabnine's fine-tuned AI models
      • Integrations
        • Atlassian Jira
      • System Requirements
      • Supported Languages
      • Supported IDEs
      • Tabnine Subscription Plans
        • Dev Preview
        • Dev
        • Enterprise (SaaS)
        • Enterprise (private installation)
    • Support & Feedback
  • 🚀Getting started
    • Install
      • Client setup (SaaS)
        • VS Code
          • Install Tabnine in VS Code
          • Activate Tabnine in VS Code
        • JetBrains IDEs
          • Install Tabnine in a JetBrains IDE
          • Activate Tabnine in a JetBrains IDE
        • Visual Studio
          • Install Tabnine in Visual Studio 2022
          • Activate Tabnine in Visual Studio 2022
        • Eclipse
          • Install Tabnine in Eclipse
          • Activate Tabnine in Eclipse
        • Sign in
          • Using an email
          • Using an authentication token
      • Client setup (private installation)
        • Join your team (private installation)
        • VS Code (private installation)
        • JetBrains IDEs (private installation)
        • Visual Studio (private installation)
        • Eclipse (private installation)
    • Quickstart Guide
      • Menus and Icons
    • Getting the Most from Tabnine Code Completions
      • Pause (snooze)
    • Getting the Most from Inline Actions
    • Getting the Most from Tabnine Chat
      • Launching Tabnine Chat
      • Interacting with Tabnine Chat
      • Reviewing suggestions
      • Writing prompts
      • Chat Context
        • Understanding Context
        • Jira Connection
        • Context Scoping
      • Conversing with Tabnine Chat
      • Switching between chat AI models
      • Image Prompts
      • Tabnine's Prompting Guide
        • Getting Started
        • Basic Prompting
          • Be specific and clear
          • Define the context
          • Start a fresh conversation as appropriate
          • Include necessary details
          • Ask for examples
          • Be concise but complete
  • 💪Software Development with Tabnine
    • Overview
    • Plan
    • Create
    • Test
      • Intro to the Test Agent
      • Test Agent Workflow
      • Custom Commands
      • Generate Test Files with @Mentions
    • Review
    • Fix
    • Document
    • Explain
    • Maintain
  • 🏭Administering Tabnine
    • Start a team
    • Manage a team
    • SaaS
      • Enterprise (SaaS) team admin
        • Set up a Tabnine Enterprise (SaaS) account
        • Invite team members
        • Manage your team
        • AI models for Chat (Enterprise SaaS)
      • Enterprise (SaaS) team member
        • Join your Tabnine team by invitation email (team member)
        • Join Tabnine team by link (member)
    • Private installation
      • Server setup guide
        • Kubernetes (MicroK8s) Installation guide
        • Deployment guide
          • Tabnine update guide
        • Air-gapped deployment guide
      • Admin guide
        • Monitoring Tabnine
        • Prometheus Operator install
        • Audit logs
      • Managing your team
        • Tabnine teams
        • Roles in an enterprise
        • Inviting users to your team
        • Deactivating and reactivating users
        • Deleting PII data of a deactivated user
        • Reset user's password
        • Usage reports
          • Reports Glossary
          • CSV-based reports (V2)
            • Configuring scheduled CSV reports
            • CSV-based reports V1 (Depracted since version 5.7.0
          • Usage API
        • Settings
          • General
          • Single Sign-On (SSO)
          • Personalization (f.k.a. Workspace)
            • Connecting to External Code Repositories
          • Email
          • License
          • Models
          • Access Tokens
        • IdP Sync
      • Release Notes
  • 📣Product Updates
    • What's new?
      • What's new? (August 2024)
      • What's new? (July 2024)
      • What's new? (June 2024)
      • What's new? (May 2024)
      • What's new? (April 2024)
      • What's new? (March 2024)
      • What's new? (February 2024)
      • What's new? (January 2024)
Powered by GitBook
On this page
  • Getting started with code completions
  • Types of code completions provided by Tabnine

Was this helpful?

  1. Getting started

Getting the Most from Tabnine Code Completions

Last updated 6 months ago

Was this helpful?

This feature is available in the following IDEs:

VS Code, JetBrains IDEs, Visual Studio 2022 and Eclipse

As you code in your IDE, you’ll get AI code suggestions based on your current context. The code completions adapt to your code as you type, and can offer on-the-fly code completions, full-function completions, or even natural language comments to code.

Tabnine’s code completions can help save significant time and effort when you’re writing or revising code. For example, by writing lines of code for you or by providing exact syntax, Tabnine saves you the time and effort of looking it up when you can’t remember something.

Getting started with code completions

Get Tabnine’s code suggestions

As you code, you’ll see Tabnine’s code suggestions inline in gray (in addition to the IDE’s pop-up suggestions):

Accept a code suggestion

Hit Tab to accept a code suggestion:

Accept part of a code completion

In some IDEs (VS Code and JetBrains), you can accept just part of a code completion:

  • Line by line (VS Code and JetBrains)

  • Word by word (VS Code)

To set the key shortcut for accepting part of a code completion:

JetBrains Go to Settings... > Keymap > Plugins > Tabnine > Accept Line

VS Code Go to Command Palette ... > Preferences: Open Keyboard Shortcuts > Accept Next Line (or Word) Of Inline Suggestion

This is especially useful for code multiline code completions when you need only the first part of the completion.

Tips

  1. Use descriptive functions and variable names for accurate predictions.

  2. If the current suggestion isn’t what you need, try typing a few more characters to use slightly different functions or variable names.

Types of code completions provided by Tabnine

Whole-line suggestions

As you code, you’ll get code suggestions based on your current context, which adapts with every additional character you type. This is the most common type of code completion, suggesting code until the end of the current line.

Tip: Use descriptive functions and variable names for accurate predictions.

Full-function suggestions

When you get to a new line right after a function declaration, you’ll receive a suggestion for a full-function implementation. Again, we recommend using descriptive functions and variable names for accurate predictions.

If the full function isn’t what you expected, try using slightly different names:

Comment-to-code completions

This type of completion allows you to explicitly declare what you want as a comment in natural language. On the line after the comment, Tabnine will suggest code that performs this task.

If the code isn’t what you were expecting, try using slightly different instructions:

Whole-line suggestion (1)
Whole-line suggestion (2)
Full-function suggestion (1)
Full-function suggestion (2)
Natural language to code (1)
Natural language to code (2)
🚀