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
        • Pro
        • 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
      • Tabnine Pro team admin
        • Purchase Tabnine Pro
        • Adding and inviting users to Tabnine Pro
        • Assigning an admin role to a team member
        • Removing a team member
        • Tabnine Pro: Manage subscription and billing
        • Tabnine Pro - Change your payment method
        • Tabnine Pro - Change plan from monthly to annual
        • Unsubscribe from Tabnine Pro plan
      • Joining a Tabnine Pro team
      • 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 Remote 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
  • Option 1: Free-form natural language prompt
  • Option 2: Quick actions (global)
  • Option 3: CodeLens (method scope)
  • Personalizing Tabnine Chat

Was this helpful?

  1. Getting started
  2. Getting the Most from Tabnine Chat

Interacting with Tabnine Chat

Last updated 10 months ago

Was this helpful?

How to interact with Tabnine Chat

You can interact and trigger Tabnine Chat in three ways:

Option 1: Free-form natural language prompt

Go to the bottom of the Tabnine Chat panel, enter a free text question or instruction, and then click Enter.

Tabnine Chat's answer will be rendered quickly:

Another recommended option is to select a block of code from the current open file and then ask a question regarding this code. This draws Tabnine Chat's attention to the relevant code:

You can ask anything you want, but keep in mind that Tabnine Chat was designed to answer questions related to code. If you write good prompts that are specific, detailed, and to the point, you increase the chances of getting an accurate and useful result.

Mentions

In the natural language prompt, you can use Mentions.

Mentions (using the @ symbol) are a way to ask Tabnine Chat to use a specific code element (type, method, or class) from the workspace in the query context. Mentions allow the user to leverage their domain knowledge and help the AI by explicitly focusing it on relevant context from the workspace.

Notes:

  1. Mentions work for each language with Language Server Protocol (LSP) support in the IDE.

  2. Type 2-3 characters after the “@” to view the available code elements.

Option 2: Quick actions (global)

Some tasks or instructions are common, so Tabnine Chat includes them as built-in actions.

The following actions operate on the selected code:

  • explain-code: Explains what the selected code is doing

  • generate-test-for-code: Writes tests for the selected code

  • document-code: Suggests documentation for the selected code

  • fix-code: Fixes the errors (detected by the IDE) for the selected code

You can trigger quick actions by clicking the relevant links when you start a new chat session:

Another option is to use "/" to view the available quick actions. Select the action you want and click Enter.

User-defined quick actions

In addition to the predefined commands provided by Tabnine, you can define your own custom commands. This can be useful for repetitive tasks that are specific to your domain:

To define your own quick action, follow these steps:

  1. On the Chat settings tab, click Add in the Define custom commands section.

  1. Fill in the slash command name, description, and prompt template fields in the Define new Command dialog. Use $ to include a reference to the selected code or open file and save the custom command.

  1. Use the slash ("/") to trigger your custom commands in the chat prompt.

Note: Custom commands are personal and saved on the local machine, per IDE. They're not shared between different users or between different IDEs on the same machine. However, they can be shared through an SCM tool.

Sharing Custom Commands

  1. You can then choose to share with your team members, which will prompt Tabnine to create a .tabnine_commands file within each repository.

Users can easily create, edit, and delete commands through this file. The shared file is the single source of truth for commands, making collaboration more seamless and efficient. Each team will be responsible for managing this file. At this time, shared commands do not support mentions.

Option 3: CodeLens (method scope)

Available in these IDEs (for these languages):

  • VS Code (Java, Python, TypeScript & TSX, JavaScript & JSX, Ruby, Go, Rust, Swift, C/C++, C#, PHP)

  • JetBrains (Java, Python, TypeScript, Rust, Kotlin, PHP, GO, C/CPP, C#)

  • Visual Studio (all supported languages)

You can trigger the quick actions for the scope of a specific method by clicking the floating Tabnine quick actions:

Personalizing Tabnine Chat

Chat Response Length

You can now customize your Tabnine AI Chat experience even further, allowing for more control over chat response length and style. Users can pick between “Concise” for a shorter answer, and “Comprehensive” for a longer, further explanation to your prompts in Chat.

  1. On the Chat settings tab, click the Response Length section.

From there, you can select either Concise or Comprehensive.

Concise is the default Chat Response Length.

Custom chat behaviors

You can specify how Tabnine AI Chat will behave in certain ways (e.g., “Respond like a mentor with step-by-step instructions and examples” or “Respond in German/Spanish”).

Follow these steps to define your custom chat behavior:

  1. On the Chat settings tab, click Set in the Define custom behavior section.

From there, you can determine how Tabnine will act before you prompt the AI Chat.

Learn more about the and .

Click on the Settings () icon in Tabnine Chat.

Click on the Settings () icon in Tabnine Chat.

Click on the Settings () icon in Tabnine Chat.

🚀
Tabnine Chat context
prompt engineering
Free-form natural language prompts
Quick actions (global)
User-defined quick actions (custom commands)
CodeLens (method scope)
Personalizing Tabnine Chat
Write a prompt in natural language and click Enter
Select a code block and give a relevant instruction
Click quick action links on new chat
Click "/" to view the available actions
Example of "Explain code" action