Skip to content

Inspections and quick fixes

Problems in the code are underlined as you work. ⌥↩ on a problem offers its fixes, and Inspect Code checks the whole project at once. Problems in the editor, context actions and Inspect Code: Works.

Fix a problem with a context action
Editor with test_cart.py: on line 15 the name with_tax is underlined with a red wavy line, and the indicator at the top right shows one error
  1. Editor with test_cart.py: on line 15 the name with_tax is underlined with a red wavy line, and the indicator at the top right shows one error
  2. Context action list below line 15 with Import 'with_tax' from 'shop.pricing' selected and Create parameter 'with_tax', and the hint F1 toggles preview
  3. Editor with test_cart.py: line 3 now imports with_tax from shop.pricing, the underline is gone and the indicator shows a check mark

Real frames of the application · ferris-idea drive, then ferris-idea drive screenshot after each step (docs/site/scripts/record-tour.py) · v1.6.0 release build, 2026-12-04 · throwaway demo project, a small Python shop with Pyright as language server; theme Ferris IDEA Dark

  • The language server of the file’s language: compiler errors, type errors, its own lints. They are asked for when a file opens, after a save, and while you type.
  • Ferris IDEA’s own inspections, for what the language servers miss. Their messages start with Ferris IDEA: . Among them: empty catch blocks and == between strings in Java, empty catch in Kotlin, a bare except: and unused variables or imports in Python, == where === is meant in JavaScript, merge-conflict markers left in any file, and lambda simplifications in Java. The set is much smaller than a full IDE’s own analysis.
  • Errors, warnings and weak warnings are underlined in their colors; unused code is drawn grey.
  • The indicator at the top right of the editor counts them (a check mark when there are none). Its arrows go to the previous and next error, and a click opens the Problems tool window.
  • The stripe at the right edge marks every problem of the file; click a mark to go there.
  • With the caret on a problem, the status bar shows its message and source, such as clang: use of undeclared identifier 'missing'. View › Error Description shows it in full.
  • F2 and ⇧F2 step to the next and previous error, or to warnings if the file has no errors.

To quieten a file, set its highlighting level to None, Syntax, Essential or All (the default). The choice is kept per file in .ferris-idea/highlighting.json.

  1. Put the caret on the problem, or anywhere you want an action for.
  2. Press ⌥↩ (AltEnter), or Code › Show Context Actions. The list opens with quick fixes (red bulb) and other context actions (yellow bulb). Ferris IDEA’s own appear at once, the language server’s join them.
  3. Type to filter. Press the Quick Documentation key (F1, CtrlQ) to preview the change next to the list.
  4. ↩ applies the action. An action that changes several files is undone as one.

Actions the server offers but cannot apply here are shown greyed, with the server’s reason. On a line with a run marker the list also offers Run, Debug and Profile. ⌥⇧↩ applies the first quick fix without opening the list. If there is nothing to offer: No context actions available here.

For an action of Ferris IDEA’s own inspections, the submenu (→) offers Disable inspection, Edit inspection settings, Run inspection on… and fixing all its findings in the file.

  1. Choose Code › Inspect Code….
  2. Choose the scope, Whole project, Current file or Folder of the current file, and Analyze.
  3. The Problems tool window opens a tab Inspection: … with the findings grouped by inspection and file. Choose one to go there; Rerun runs the inspection again.

Code › Inspect Current File checks only the open file, and Code › Run Inspection by Name… runs one inspection you pick. Only the project’s own sources are inspected.

Settings › Editor › Inspections lists Ferris IDEA’s own inspections by language: Java, Kotlin, JavaScript and TypeScript, Python, Properties, Natural language and General.

  • The checkbox switches an inspection on or off (Space).
  • The severity cycles through Error, Warning, Weak Warning and No highlighting (↩).
  • Reset (or Delete) returns a row to its default.

The choices hold for the project and are written to .idea/inspectionProfiles/Project_Default.xml, only where they differ from the default. It is the file format of IntelliJ-based IDEs, so a team that also uses one shares the same profile. The language servers’ own checks are configured in their own files (rustfmt.toml, pyproject.toml, tsconfig.json, .eslintrc and so on).

To silence one finding in the code, use the language’s own comment or annotation: //noinspection or @SuppressWarnings in Java, @Suppress in Kotlin.

Keyboard of
ActionShortcut
Code › Inspect Current File⌥⇧IAltShiftI
Code › Run Inspection by Name⌥⇧⌘ICtrlShiftAltI
Code › Show Context Actions⌥↩AltEnter
Navigate › Next Highlighted ErrorF2F2
Navigate › Previous Highlighted Error⇧F2ShiftF2
Problems⌘6Alt6
Quick action popupQuickActionPopup⌥⌘↩CtrlAltEnter
View › Error Description⌘F1CtrlF1
  • No underlines at all. The language server is not running (the status bar says so), the file’s highlighting level is None, or the project is in safe mode and the server is one that does not start there.
  • A finding you disagree with. For Ferris IDEA’s own inspections, lower the severity or switch it off in Settings › Editor › Inspections; for the server’s, change the server’s own configuration.
  • No context actions available here. Neither the server nor Ferris IDEA has an action for that place; move the caret onto the name or the problem.

Reading problems and listing actions need no right. Applying an action or a fix previews by default and needs write; a fix in a project needs the project to be trusted.

  • apply_code_actionchangesdry run by defaultwriteApply a quick fix or refactoring offered by code_actions, chosen by title.
  • apply_context_actionchangesdry run by defaultwriterunsettingstrusted-projectApply a row of context_actions by title, or an option of its submenu.
  • code_actionsreadsdry run by defaultQuick fixes and refactorings the file's language server offers at a position or selection: title, kind, preferred and the problems each fixes.
  • context_actionsreadsThe ⌥↩ context actions at a caret position as the editor lists them: run (Run, Debug, Profile at a run-marker line with their configurations), own (Ferris IDEA's quick fixes, with fix-all options), actions (the language server's actions on the saved file, with options), hidden (intentions the user turned off) and server_error.
  • file_diagnosticsreadsErrors and warnings of workspace files from their language server (clangd, rust-analyzer, pyright, typescript-language-server, gopls), followed by Ferris IDEA's own findings (source Ferris IDEA).
  • fix_inspectionchangesdry run by defaultwritetrusted-projectApply the quick fix of one finding of Ferris IDEA's own inspections (inspect_code names it), by file, 0-based line and column and inspection id; all fixes every finding of that inspection in the file, overlaps skipped.
  • highlighting_levelchangeswriteThe highlighting level of a file, as the editor's problem indicator offers it: none (no problems shown), syntax (errors only), essential (errors and warnings) or all (default).
  • inspect_codereadsRun Ferris IDEA's own code inspections (as Code | Inspect Code) over the project or a file or folder: Java checks (unused code, redundant casts, null dereferences, string ==, …), Kotlin empty catch, Python bare except, JS/TS coercing ==, merge markers, .properties problems, and repeated words, a/an and typos in text.
  • inspection_profilechangeswriteThe project's inspection profile, stored as the reference stores it in .idea/inspectionProfiles/Project_Default.xml: lists every Ferris IDEA inspection with id, short name, name, language, default level, whether it is enabled, its current level, whether it differs from the default, and its description.
  • suppress_inspectionchangesdry run by defaultwriteSuppress one finding of Ferris IDEA's Java or Kotlin inspections, identified by file, 0-based line and column and inspection id from inspect_code.