# Language features

> Code intelligence in KazoCode through language servers - completions, hover, go to definition, references, rename, code actions, formatting and diagnostics, plus an interactive REPL.

KazoCode speaks the Language Server Protocol, so it gets completions, errors and refactoring from the same language servers other editors use. It finds the right server for each file type and, when one is missing, offers to install it.

## What you get

| Feature | How |
| --- | --- |
| Completions with documentation | As you type |
| Hover information | Point at a symbol |
| Signature help | Inside a call's parentheses |
| Go to definition, implementations | `F12`, `Ctrl+F12` |
| Find all references | `Shift+F12` |
| Rename a symbol everywhere | `F2` |
| Code actions and quick fixes | `Ctrl+.`, `Ctrl+Shift+.` |
| Format the document | `Shift+Alt+F` |
| Next and previous problem | `F8`, `Shift+F8` |
| Next and previous warning | `F9`, `Shift+F9` |

Errors and warnings show in the gutter, inline under the code, and in the **Problems** view (`Ctrl+Shift+M`).

## Language servers

Run **Language Servers...** from the command palette to see which servers are ready, and **Install Missing Language Servers...** to install the rest; KazoCode asks before running each install command. Configure a server for one project in `.kazo/lsp.json`.

## Per-language settings

Override editor settings for one language with a `[language]` section in your settings, for example a tab size of 4 and format on save for Python only. `tabSize`, `insertSpaces`, `rulers`, `wordWrap`, `formatOnSave` and `detectIndentation` can be set per language. Map other file names to a language with `files.associations`, such as `*.foo=rust`.

## Interactive REPL

Run code without leaving the editor. The REPL keeps one running session per language, for Python, TypeScript (Deno), JavaScript (Node), R, Julia and shell.

| To run | Press |
| --- | --- |
| The selection, or the current line | `Ctrl+Enter` |
| The cell around the cursor (cells start with `# %%`) | `Ctrl+Alt+Enter` |
| The whole file | `Ctrl+Shift+Enter` |

The output appears in the REPL panel and under the line that ran. Open the panel with **Run: Open REPL**.
