Skip to content

Latest commit

 

History

History
90 lines (50 loc) · 3.14 KB

File metadata and controls

90 lines (50 loc) · 3.14 KB

Features

LSP4IntelliJ surfaces these LSP capabilities in JetBrains IDEs.

Note: Features are mainly tested on IntelliJ IDEA.

Table of Contents


Code Completion (with code snippet support)

Press Ctrl+Space to see the completion items list, which depends on your cursor position. Code completion items also pop up automatically based on your language-server-specific trigger characters.

Code completion popup showing language-server-provided suggestions

For code snippets, use Tab/Enter to navigate to the next placeholder position, or Esc to apply the snippet with default values.

Inserting a code snippet and tabbing through its placeholders

Code Formatting

Navigate to Code → Reformat Code to open a dialog that lets you format the whole file or a selected range.

Reformatting a file via the Reformat Code dialog

Diagnostics

To see diagnostics (errors, warnings, etc.), hover over them to view the message.

Hovering over a diagnostic to view the error message

Code Actions

Hover over any diagnostic highlight to view and apply related code actions via the light bulb that pops up.

Light bulb showing available code actions for a diagnostic

Go to Definition

Use Ctrl+Click (Cmd+Click on macOS) to navigate to a symbol's definition.

Ctrl+Click navigation to a symbol's definition

Go to References / Find Usages

Use Ctrl+Click (Cmd+Click on macOS) or Shift+Alt+F7 on a symbol to view its references/usages.

Listing references and usages of a symbol

Hover Support

Hover over an element while pressing Ctrl (Cmd on macOS) to view its documentation, if available.

Hover popup showing documentation for a symbol

Workspace Symbols

Click Navigate in the top menu, then Symbol…, and enter the name of the symbol you want to search for.

Searching for a workspace symbol via the Navigate menu

Renaming Support

Place the cursor on the element to rename and press Shift+F6 to trigger in-place renaming.

In-place rename of a symbol triggered with Shift+F6


Work in progress

  • Signature Help