Skip to content
DOCS

Code intelligence and problems

Completion, go to definition, rename and live errors for Rust and C++, from rust-analyzer, clangd and Taplo.

Studio runs a language server for your project's language: rust-analyzer for Rust, clangd for C++, and in Rust projects Taplo for Cargo.toml and other TOML files. They give you completion, hover docs, go to definition, rename, quick fixes, inline hints and live errors.

Install the serversLink to this section

Open Settings, Intelligence, and Install any that are missing. The pill in the editor toolbar shows a server's state, and offers an install or restart when it's missing or has crashed.

clangd comes with the Xcode Command Line Tools: install them, then click Retry. rust-analyzer installs through rustup.

C++ projectsLink to this section

clangd needs your project's compile commands. If the banner Enable C/C++ IntelliSense for this project appears, click Enable (on Windows, Set up IntelliSense for Windows, then Set up), then build: Studio adds the CMake setting clangd needs. Until the project is built, clangd can't see JUCE or SDK headers, so some errors may not be real.

Using itLink to this section

TomacOSWindows
Go to definitionF12F12
Peek definition⌥F12Alt+F12
Rename a symbol⇧F6Shift+F6
Quick fix⌘.Ctrl+.
Next / previous problemF8 / ⇧F8F8 / Shift+F8

ProblemsLink to this section

The Problems panel (⇧⌘M, Ctrl+Shift+M on Windows) lists every problem the servers report, including files that aren't open (rust-analyzer checks the whole crate when you save). Filter by severity or text, show only the current file, or right-click a problem to hide that kind. Re-check restarts the servers.

Findings from the last Validation check and the Real-time Check are listed at the top. With an agent set up, Ask to Fix drafts a message about a problem.

TestsLink to this section

The Tests tab in the bottom drawer runs your project's own tests: Run Tests runs cargo test, or ctest for CMake projects. Failed tests and build errors link to their lines, and also show in Problems; with an agent set up, Ask to Fix drafts a message about one.

SettingsLink to this section

Settings, Intelligence turns individual features on or off: inlay hints, CodeLens, hovers, autocomplete, and Check Rust with Clippy for stricter Rust checks.