Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Switch to DataGripNew to Visual Studio Code? Get it now.
Switch to DataGrip

Switch to DataGrip

MaxPowerEngine

|
5 installs
| (0) | Free
Open current file in DataGrip at the vscode line
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Switch to DataGrip

Open the current file in JetBrains DataGrip at your cursor line — instantly.

Switch to DataGrip is a VS Code extension that bridges your editor with JetBrains DataGrip. Whether you're editing SQL files, reviewing database scripts, or working with any text file, this extension lets you jump straight into DataGrip's powerful database IDE with a single keystroke or right-click — and it opens the file at exactly the line where your cursor is.

Features

  • Right-Click Menu — Open any file in DataGrip from the editor context menu (under the Navigation group).
  • Keyboard Shortcut — Switch to DataGrip instantly without touching the mouse.
  • Cursor Line Jump — DataGrip opens the file and scrolls to the exact line where your cursor was in VS Code.
  • Auto-Detect DataGrip — The extension automatically finds DataGrip on your system. No manual setup required.
  • macOS & Windows — Full support for both platforms.

Requirements

  • JetBrains DataGrip must be installed on your system.
    Download it from jetbrains.com/datagrip.
  • VS Code version 1.74 or later.

Usage

Right-Click Menu

  1. Open a file in VS Code.
  2. Right-click anywhere in the editor.
  3. Select Open in DataGrip from the context menu.

Keyboard Shortcut

Platform Shortcut
macOS Cmd + Shift + D
Windows Ctrl + Shift + D

Press the shortcut while the editor has focus, and the current file will open in DataGrip at your cursor line.

Extension Settings

This extension contributes the following setting:

switch2datagrip.dataGripPath

Custom path to the DataGrip executable or application bundle.

  • Type: string
  • Default: "" (empty — auto-detect)

If DataGrip is installed in a non-standard location, you can set this manually in your VS Code settings:

{
  "switch2datagrip.dataGripPath": "/path/to/datagrip"
}

Leave it empty to let the extension auto-detect DataGrip from common installation directories.

Platform Support

macOS

The extension searches for DataGrip in the following locations:

  • /Applications/DataGrip.app
  • /Applications/DataGrip CE.app
  • ~/Applications/DataGrip.app

It uses the open -a command to launch the application bundle.

Windows

The extension searches for datagrip64.exe in:

  • %LOCALAPPDATA%\JetBrains\Toolbox\apps\DataGrip\ch-0
  • %PROGRAMFILES%\JetBrains\DataGrip
  • %LOCALAPPDATA%\Programs\DataGrip

Toolbox installations and standard installers are both supported.

Note: Linux is not currently supported.

Known Issues

LightEdit Mode

When DataGrip is not running or no project is open, DataGrip may open files in LightEdit mode — a lightweight single-file editor. This is DataGrip's default behavior for files opened outside a project context. To get the full IDE experience, open a DataGrip project first, then use the extension to open additional files.

License

This extension is licensed under the MIT License.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft