JetBrains' VS Code Plugin Adds IntelliJ IDEA Features for Java/Kotlin

The article reviews JetBrains' official 'Java and Kotlin by IntelliJ IDEA' VS Code plugin, which runs IntelliJ's language server via LSP to deliver code completion, navigation, refactoring, debugging, and Gradle/Maven/Bazel project import, though test discovery and execution are not yet supported.

macrozheng
macrozheng
macrozheng
JetBrains' VS Code Plugin Adds IntelliJ IDEA Features for Java/Kotlin

Introduction

JetBrains has released an official VS Code plugin named Java and Kotlin by IntelliJ IDEA. It supports VS Code, Cursor, and other VS Code-based editors. The plugin runs IntelliJ's language service in the background and communicates with the editor via the Language Server Protocol (LSP) to analyze projects and provide coding assistance.

Core capabilities include:

Language support for Java, Kotlin, and mixed projects.

Project import for Gradle, Maven, and Bazel builds.

Coding assistance: code completion, signature hints, code inspections, and quick fixes.

Navigation and refactoring: go-to-definition, view documentation and library sources, common refactorings, and code formatting.

Run and debug support for Java and Kotlin applications.

Installation

Installation is straightforward: search for Java and Kotlin by IntelliJ IDEA in the VS Code extensions marketplace and install it.

Plugin marketplace search result
Plugin marketplace search result

After installation, a Java and Kotlin status indicator appears in the bottom-right corner of VS Code showing running, confirming the plugin is active.

Plugin status running
Plugin status running

Usage

Project Import

In the Explorer, right-click and choose Add Folder to Workspace. The plugin detects the build system and imports the project, supporting both Gradle and Maven.

Project import via Add Folder to Workspace
Project import via Add Folder to Workspace

Coding Assistance

As you type, the plugin shows method completions with parameter and return type hints, familiar to IntelliJ IDEA users.

Code completion with parameter hints
Code completion with parameter hints

Syntax errors are highlighted in real time with automatic suggestions.

Real-time error detection
Real-time error detection

Selecting a local variable brings up context actions such as extract field, extract constant, and inline variable.

Context actions for local variable
Context actions for local variable

Refactoring

Familiar IntelliJ refactorings — rename, extract, inline, and code formatting — are available via the right-click context menu.

Refactoring menu
Refactoring menu

Navigation and Search

Standard navigation shortcuts work: F12 jumps from usage to declaration, Ctrl+F12 jumps from interface or method to implementation.

Go to declaration and implementation
Go to declaration and implementation

Hovering over an implementing method shows the corresponding interface method and documentation; Go to Super Method navigates to the interface declaration.

Hover documentation and Go to Super Method
Hover documentation and Go to Super Method

File search is available via the top search bar.

File search bar
File search bar

Run and Debug

Open the application's main class; run and debug buttons appear directly above the main method. Clicking run shows a toolbar with restart and stop controls.

Run and debug buttons on main method
Run and debug buttons on main method

When debugging with breakpoints, the debug toolbar buttons activate, and the left panel displays variable values and call stack.

Debug session with variables and call stack
Debug session with variables and call stack

Summary

The demonstration shows that IntelliJ IDEA's common features — code completion, navigation, refactoring, and breakpoint debugging — are now usable in VS Code. However, the plugin currently lacks test discovery and test execution, so it cannot fully replace IntelliJ IDEA. If your organization prohibits IntelliJ IDEA but you rely on its features, this plugin is worth evaluating for daily development needs.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

debuggingJavapluginKotlinIntelliJ IDEALSPVS Code
macrozheng
Written by

macrozheng

Dedicated to Java tech sharing and dissecting top open-source projects. Topics include Spring Boot, Spring Cloud, Docker, Kubernetes and more. Author’s GitHub project “mall” has 50K+ stars.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.