events.subscribe-paths-with-options adds an optional debounce-ms (up to 5 s) that coalesces files-changed deltas on the host, so bursts of edits don't run a plugin's discovery again and again. workspace.project.generation returns a project's state generation, which moves on every file change; FilesChanged carries the project root and generation. Registering run targets or run configurations computed for a superseded generation fails with Error::Stale. A new project-closed event tells subscribed plugins a project closed after its queued events are dropped and its run targets and configurations are withdrawn.
On top of the contributor's work: closing one project no longer cancels a plugin instance's in-flight work for other projects (an instance serves every project; results for the closed one are refused because its generation moved on), the generation is bumped on close, the generation is attached only for plugins declaring API 1.18 so older plugins' registrations are never refused, and the API now ships as part of 1.18 with the components rebuilt.
Closes#4760
Co-authored-by: Akin01 <[email protected]>
[[contributes.dialogs]] declares a package web page shown in a modal IDE dialog with the platform title bar, a declared size (320-1600 x 200-1200) and a title. The plugin's code opens it with views.reveal(id) in the invoking window, with no new capability. The user resizes it (remembered per dialog) and closes it with the close button or Escape, also from inside the page; the page can close it with openidea.dialog.close(). The plugin hears of the close as a closed view event. Dialog ids can't collide with the plugin's view ids.
With overlays (#6046) for non-modal pages, this covers #6012.
Fixes#6012
[[contributes.overlays]] declares a package web page that floats over the workbench at one of nine anchors while its when clause holds. It never takes the keyboard focus when shown (out of the tab order), sits under dialogs, popups and notifications, and can let every click through (interactive = false). The page moves and resizes itself with openidea.overlay.get() / place({ anchor, width, height }); sizes are clamped to 40-800 px. It needs no code and no capability, since the page sees nothing of the IDE.
Overlays are gated on plugin API 1.18.0 (package openidea:[email protected].0, engine, SDK, api_compat, rebuilt components); 1.17 is listed as shipped with 0.1.53.
Part of #6012
Co-authored-by: xirf <[email protected]>
A plugin command run without an argument (its shortcut, Find Action) while one of the plugin's views has the keyboard focus gets the selected item's key, the same argument as from that item's viewItem.context menu. Only commands the item's menu offers (with its when clause) get it; nothing selected or focus elsewhere gives none.
Fixes#4759
In a run console that isn't a test run, Previous / Next Occurrence now step
through the file links in the output (skipping URLs, the IDE's own lines and
collapsed folds), select the link, scroll it to the centre and open its target,
and the console toolbar shows them as Up / Down the Stack Trace. Test runs keep
stepping through failed tests.
Closes#6059
Co-authored-by: mansur-akhmadi <[email protected]>
Adds IDEA's Recent Find Usages (find.recentUsages, Find category): every Find
Usages run (first search, Rerun, Search in Libraries) is recorded, newest first,
one per caret position, up to 10, cleared on project switch; the action lists
them in a centered menu and runs the chosen one again in a new tab, opening the
file's document when no editor has it. Unbound by default; IDEA keymap import
maps ShowRecentFindUsagesGroup.
Closes#5999
Co-authored-by: mansur-akhmadi <[email protected]>
Adds Annotate Revision to the annotate gutter's context menu, before Annotate
Previous Revision: the file as of the clicked line's commit against the
working file, annotated on the left (the view Annotate at Revision... opens),
read from the line's origin path when blame reports a rename. Uncommitted
lines don't get the item.
Closes#6010
Co-authored-by: mansur-akhmadi <[email protected]>
Adds IDEA's Scroll to Top / Scroll to Bottom (EditorScrollTop /
EditorScrollBottom) as Editor Actions next to Scroll Up / Down: Top sets the
scroller to 0 keeping the horizontal position, Bottom brings the end of the
document to the centre; neither moves the caret or the selection. Unbound by
default as in IDEA's default keymaps; IDEA keymap import maps them.
Closes#6053
Co-authored-by: mansur-akhmadi <[email protected]>
Adds IDEA's Move Caret Forward / Backward a Paragraph and their with-selection
variants (EditorForwardParagraph, EditorBackwardParagraph, ...WithSelection)
as Editor Actions. Blank lines are whitespace-only lines; Forward stops at the
start of the next blank line or the end of the text, Backward at the empty
line before the paragraph, as IDEA's ForwardParagraphAction /
BackwardParagraphAction. Unbound by default; IDEA keymap import maps them.
Closes#6004
Co-authored-by: mansur-akhmadi <[email protected]>
Adds IDEA's Swap Selection Boundaries (EditorSwapSelectionBoundaries) as
editor.swapSelectionBoundaries in Editor Actions: each non-empty selection
swaps anchor and head, plain carets stay, the primary range stays primary;
with no selection it does nothing. No default shortcut, as in IDEA; IDEA
keymap import and IdeaVim :action map to it.
Closes#5996
Co-authored-by: mansur-akhmadi <[email protected]>
Adds IDEA's Select Line at Caret (EditorSelectLine) as editor.selectLine in
Editor Actions: each caret or selection grows to the whole lines it touches
plus the line break after them (to the end of the text on the last line); a
folded region's lines go with the line it is shown on. No default shortcut,
as in IDEA; IDEA keymap import and IdeaVim :action map to it.
Closes#5993
Co-authored-by: mansur-akhmadi <[email protected]>
The panel needed the workbench to run as a child webview, which on macOS declines key equivalents, so Command shortcuts went to the native menu and many were lost (#5954, #5992). Reverts #5788, #5917 and the #5956 key-monitor workaround; the workbench webview is the window's own view again on every platform. The panel can come back once it no longer needs a child webview.
Adds Hungry Backspace (code.hungryBackspace, EditorHungryBackSpace for imported
keymaps and IdeaVim :action): a caret right after a space, tab or line break
deletes the whole whitespace run before it, across lines; a caret after
anything else, or a selection, gets a plain Backspace, so an empty bracket pair
still goes as one. Unbound by default, reachable from Find Action and
Settings > Keymap.
Closes#5987
Co-authored-by: mansur-akhmadi <[email protected]>
Adds the annotate gutter's Options › Names submenu: Initials, Last Name, First Name and Full Name, with Last Name as the default. Names are shortened as IDEA's ShortNameType does: an <email> part is dropped, a bare email's local part is split on delimiters, initials also split on delimiters, and a name taken from an email is capitalized. The choice is remembered and shared across windows, and every annotated editor, including historical annotations, re-blames when it changes. The commit popup and inline blame keep the full name.
Co-authored-by: mansur-akhmadi <[email protected]>
Adds New Terminal Tab in Editor (terminal.newInEditor, unbound by default), which opens a fresh terminal session as an editor tab. Its keyWhen keeps it out of the Terminal tool window and popups, so it can share a key such as Cmd+T with New Terminal Tab, and editor terminal sessions pass its shortcut to the IDE. Keymap conflict detection now combines an action's when and keyWhen, so bindings in disjoint focus contexts are no longer reported as conflicts.
Co-authored-by: dengliu <[email protected]>
Adds the Select First Failed Test When Finished toggle under Test Runner Options and in Find Action (off by default, stored with the other test tree options). When a run finishes with it on, the test tree selects the first failure in tree order, honouring filters and sorting, opens its collapsed suites and shows its output without moving focus.
Co-authored-by: mansur-akhmadi <[email protected]>
Adds CopyAsPlainText and CopyAsRichText: copy the selection once in the other format than Settings > Editor > General > Rich-Text Copy, without changing the setting. The editor popup's Copy / Paste Special shows the one the setting doesn't already give, only with a selection; Copy as Rich Text needs a single selection. No default shortcut; both are listed in Keymap and Find Action.
Closes#5959
Co-authored-by: mansur-akhmadi <[email protected]>
The editor tab menu's Split and Move Right / Split and Move Down become actions (editor.splitAndMoveRight / editor.splitAndMoveDown, IDEA ids MoveTabRight / MoveTabDown), so Find Action lists them, they can take a shortcut and imported keymaps / IdeaVim :action can map to them. They move the active tab of the active group into a new split and are enabled only when the group has more than one tab; the tab menu items show their shortcut. No default shortcut in the presets.
Closes#5952
Co-authored-by: mansur-akhmadi <[email protected]>
Plugin API 1.17: decorations.set-styled (SDK host::set_styled_decorations) lets editor decoration items carry their own #rrggbb / #rrggbbaa foreground and background, for colors the theme palette lacks (e.g. a TODO highlighter's user-chosen colors).
- Host validates and normalizes colors (anything else is Invalid); an item with colors may leave style empty; set ids, limits and clear are shared with set / set-markdown.
- Editor paints the range with inline color / background-color; the after label takes the foreground only; the frontend re-checks the hex format.
- SDK types, wrapper and mock (shared replace/limit helper for the three decoration kinds); decorations fixture gains a styled command.
- Package openidea:[email protected].0, engine 1.17.0, components rebuilt; docs list 1.16 as shipped with 0.1.52.
Adds Cut up to Line End (Ctrl+K in the macOS IntelliJ keymap; repeated cuts at the same caret collect into one clipboard and Paste from History entry) and Delete to Line Start / Delete to Line End. They work on document lines rather than soft-wrapped rows, merge overlapping spans of several carets, and run only in a focused editor so popup text fields keep their own keys. Eclipse keymaps bind Delete to Line End to Shift+Cmd/Ctrl+Delete; Ctrl+K is listed as a Vim conflict.
Closes#5944
Co-authored-by: mansur-akhmadi <[email protected]>
The database ER diagram becomes interactive: automatic layout, draggable and collapsible tables, unique keys and indexes with badges, dashed nullable foreign keys, and a Show Diagram Popup action.
Refs #5778
Co-authored-by: mansur-akhmadi <[email protected]>
Adds Expand Doc Comments and Collapse Doc Comments to Code > Folding, folding or unfolding every documentation comment in the file.
Closes#5934
Co-authored-by: mansur-akhmadi <[email protected]>
Open Local Browser opens a Browser tool window hosting a Tauri child webview
for a loopback HTTP(S) origin in a trusted local project: back, forward,
reload, same-origin navigation, and Inspect Element, whose reviewed selection
is appended to the Agent draft without being sent. The guest webview has an
empty capability set; workbench capabilities are scoped by webview label, and
application IPC and the plugin protocol reject guests by label. Workbench
windows are tracked as their original WebviewWindow handles, because Tauri's
single-webview lookup stops matching once a child is attached; window
commands (including the parallel close flow) use those handles.
Console URL clicks keep opening the external browser; loopback URLs get
"Open in Browser Tool Window" in the Run and Debug console context menus.
The panel uses a one-row icon toolbar, fills the panel with the page, has its
own tool window icon and focuses the address field for a new session.
Co-authored-by: dengliu <[email protected]>
Co-authored-by: aditya-786 <[email protected]>
Host startup now moves legacy plaintext SSH passwords and key passphrases from
ssh-passwords.json into the OS credential store, without waiting for the next
SSH connection. When the move cannot finish, each workbench shows a sticky
warning with Retry migration and a confirmed Remove plaintext copy, which keeps
credentials already moved. A credential that cannot be saved stays for the
session and the requesting window is warned. An unreadable ssh-passwords.json
is set aside (renamed, never deleted) like the other secret files, so it no
longer blocks saving new credentials.
Co-authored-by: dengliu <[email protected]>
Settings › Languages & Frameworks › Flutter › Flutter SDK path chooses the SDK whose flutter and Dart the Dart language server, the debugger, run configurations, pub commands, the device list (flutter daemon) and DevTools use; empty keeps PATH. The page shows flutter --version --machine for the chosen SDK and lists detected SDKs (PATH, ~/flutter, ~/development/flutter, ~/sdk/flutter, fvm). Changing it restarts the daemon and stops DevTools.
Part of #4096.
Co-authored-by: wildcatDownstairs <[email protected]>
A terminal tab moved into the editor can now return to the Terminal tool window with its running session: Move to Terminal in the editor tab menu and Find Action, or dragging the tab onto the Terminal stripe button, a terminal tab strip (at a position) or a split edge. The tab keeps its PTY, scrollback, custom name and shell; an unstarted restored tab starts a fresh session there. Also passes the action argument correctly to Move to Editor.
Co-authored-by: dengliu <[email protected]>
Holding Cmd (Ctrl on Windows/Linux) over terminal output now underlines paths that resolve to an existing file or folder relative to the session's working directory or project root; clicking opens the file (with line:column) or selects the folder in the Project view. Results are cached per buffer write and cleared on output, scroll and buffer switches; window key listeners are removed on dispose.
Co-authored-by: dengliu <[email protected]>
The Database tree gets Diagrams › Show Diagram (ShowUmlDiagram, ⌥⇧⌘U / Ctrl+Alt+Shift+U): selected tables, a schema (its tables) or a tables / views folder open as a read-only ER diagram tab with columns, PK / FK markers and the foreign keys between the shown tables. It is a Mermaid erDiagram built from the table details the tree already loads, rendered with the Markdown preview's renderer (theme colours, zoom, full screen, download). Names are written as entity codes so no character can break the source; at most 50 tables and Mermaid's 50,000-character limit, with a notification when tables are left out. The tree store now keeps the multi-selection.
Closes#5778
Co-authored-by: mansur-akhmadi <[email protected]>
PRODUCT.md records the users, positioning, constraints and evidence the UI must respect.
DESIGN.md documents the visual system from src/styles/tokens.css and the src/ui primitives:
colour roles, the type scale, density and compact mode, tonal layering with shadows only on
floating surfaces, and component rules. .impeccable/ holds the design tool's config and the
machine-readable form of DESIGN.md.
The UI guidelines now say Islands Light is the default theme and list the built-in themes,
instead of describing the style as dark.
The Flutter run configuration gets Dart entrypoint, Build mode (Debug / Profile / Release), Build flavor, Additional run args and Additional attach args next to the pinned Device. Mode and flavor become --profile / --release and --flavor=<name> on flutter run, are read back from existing command lines, and reach debug sessions too; hot reload stays debug-only. Run › Flutter Attach attaches with the selected configuration's entry point and attach args. The JetBrains importer keeps attachArgs as a form field instead of reporting it ignored.
Part of #4096
Co-authored-by: wildcatDownstairs <[email protected]>
Enables or disables every breakpoint on the caret line, or on each line the selections and carets cover (line, method and field breakpoints), without removing them. In Find Action with no default shortcut; maps IDEA's ToggleBreakpointEnabled for imported keymaps and IdeaVim.
Closes#5763
Co-authored-by: mansur-akhmadi <[email protected]>
* feat(agents): roll back files with the conversation to an earlier message
Each turn now keeps a record of the checkout as it started (HEAD, the
changed files' stamps, and copies shared between turns by path and
stamp). Rolling back to a message drops it and the later turns and puts
the files changed since back as they were before it was sent; the
message returns to the composer. Edit, Run Again From Here and
Regenerate Response put the files back the same way before running
again.
The plan is read and checked before anything changes, so a file that
can't be restored leaves the conversation and the files untouched. In
the project's own checkout only files a turn of the task changed are
restored. Tasks saved with only the last turn's record can roll back
files to their last or first message.
* fix(agents): harden turn rollback pre-checks, rename handling and confirmation
- Plan and validate all files before truncating the conversation even when rolling back to turn 0 without a turn record
- Record renamed_from paths in checkout snapshots and apply removals before writes so case-only renames restore cleanly on case-insensitive disks
- Guard rollback against concurrent operations, move file I/O and restamping out of the task lock, and emit Truncated/Task after files and turn records settle
- Scope local-mode turn rewind to the rolled-back turns' recorded changes so user edits to other turns' files stay untouched while committed files in rolled-back turns are reverted
- Use a stable blake3 hash for persisted turn copy names
- Confirm before Run Again From Here and Regenerate Response rewind files on later turns
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
---------
Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Copies the subject lines of the selected Git Log commits, one per line, newest first. Reached from Find Action or a keymap shortcut (no menu entry, no default shortcut); maps IDEA's Vcs.CopyCommitSubjectAction.
Closes#5760
Co-authored-by: mansur-akhmadi <[email protected]>
Gutter Run / Debug of JUnit 5 tests in Maven modules now starts OpenIDEA's own JUnit Platform runner (java/junit-runner, built from the in-tree source and embedded by ide-sdk) on the language server's test classpath instead of mvn test, as IDEA runs Maven tests unless build/run actions are delegated to Maven. The runner reports TeamCity service messages to the existing test tree; Debug and Rerun Failed Tests reuse it. The launcher jar of the engine's version comes from the classpath, else from the engine's Maven/Gradle repository folder, else is downloaded once from Maven Central.
The runner JVM gets the module's Surefire configuration like IDEA's MavenJUnitPatcher: argLine (with @{...} late replacement), systemPropertyVariables / systemProperties, environmentVariables, workingDirectory, additionalClasspathElements and classpathDependencyExcludes, read from the cached effective POM (else the module POM); the console lists what was applied.
Settings › Build Tools › Maven › Run tests using: OpenIDEA (default) or Maven (the previous mvn test -Dtest=... path). JUnit 4-only, TestNG and Gradle tests keep their current runners.
Closes#5553
Co-authored-by: wildcatDownstairs <[email protected]>
Terminal tabs can be dragged from the Terminal tool window into any editor tab strip position, onto an editor pane or the empty editor area, or onto a pane edge to open a split, keeping the running session (PTY, processes, scrollback, focus). Splitting a terminal editor tab opens a fresh shell in the same working directory instead of showing one session in two panes (editor kinds can declare singleton + splitInput).
Co-authored-by: dengliu <[email protected]>
Adds Move Caret to Page Top / Bottom and their With Selection variants: every caret moves to the first / last line fully shown in the editor, keeping its visual column (a line cut by the edge is used only when it is the only one there). Bound to Ctrl+PageUp / Ctrl+PageDown (+Shift) in the IntelliJ Windows keymap and Cmd+PageUp / Cmd+PageDown in the IntelliJ macOS keymap; unbound in the Eclipse and VS Code presets. IDEA keymap import and IdeaVim :action map EditorMoveToPageTop / Bottom (WithSelection).
Closes#5722
Co-authored-by: mansur-akhmadi <[email protected]>
The tab menu's Close Unmodified Tabs, Close All but Pinned, Close Tabs to the Left / Right and Close All Read-Only Tabs become Window actions on the active tab of the active group, so Find Action lists them, they can take a shortcut, and IDEA keymaps / IdeaVim :action ids (CloseAllUnmodifiedEditors, CloseAllUnpinnedEditors, CloseAllToTheLeft, CloseAllToTheRight, CloseAllReadonly) map to them. Each is enabled exactly when the tab menu item would be. No default shortcuts.
Closes#5719
Co-authored-by: mansur-akhmadi <[email protected]>
Scroll Up and Scroll Down move the editor by one line without moving the caret or touching the selection and history. Bound to Ctrl+Up / Ctrl+Down in the IntelliJ and VS Code Windows keymaps (unbound on macOS, where IDEA removes them) and mapped from IDEA's EditorScrollUp / EditorScrollDown ids.
Fixes#5713
Co-authored-by: mansur-akhmadi <[email protected]>
Find Word at Caret and Find Previous Word at Caret jump to the next or previous occurrence of the selection, or of the identifier around the caret, without opening the find bar: case-sensitive, not whole words, anywhere in the file, and the query becomes the last search so Find Next continues with it. Bound to Ctrl+F3 / Ctrl+Shift+F3 in the IntelliJ Windows keymap and mapped from IDEA's FindWordAtCaret / FindPrevWordAtCaret ids.
Fixes#5711
Co-authored-by: mansur-akhmadi <[email protected]>
A very long line is cut into 500-unit windows around its matches, and each window's UTF-16 text offset was counted from the line start: quadratic in the line length (101 s for a 20 MB line with a frequent term). Each window's offset now adds the UTF-16 length since the previous window's start, falling back to the line start if a window starts earlier. Output is unchanged, checked against the previous windowing on 3,000 random lines; adds an observe-only search_long_line bench.
Co-authored-by: audichuang <[email protected]>
Show Line Numbers, Show Indent Guides, Show Sticky Lines and Show Whitespaces are now View toggle actions (editor.toggleLineNumbers / toggleIndentGuides / toggleStickyLines / toggleWhitespaces): runnable from Find Action with their ON/OFF state and bindable to a key, writing the same global settings as the gutter's Appearance menu and Settings. IDEA's EditorGutterToggleGlobalLineNumbers / IndentLines / StickyLines map to them. The gutter's Appearance menu gains Show Sticky Lines and builds its items from the same table.
Closes#5703
Co-authored-by: mansur-akhmadi <[email protected]>
Adds IDEA's Convert Indents to Spaces and Convert Indents to Tabs (code.convertIndentsToSpaces / code.convertIndentsToTabs, Edit category, no default shortcut). They rewrite only the leading whitespace of the selected lines, or of the whole file without a selection, measured in columns with the editor's tab size; To Tabs keeps the columns short of the next tab stop as spaces. ConvertIndentsToSpaces / ConvertIndentsToTabs from imported IDEA keymaps and IdeaVim :action now resolve.
Closes#5701
Co-authored-by: mansur-akhmadi <[email protected]>
API 1.16 adds ui.pick-file (host::pick_file in the SDK): during an interactive command or view event a component can choose an existing file or a save destination, with a title, a suggested name and extension filters. It returns an absolute path on the project host, or none when dismissed. It uses the same prompt routing and path validation as pick-directory: the native dialog locally and the project host's chooser in remote windows. Choosing a file grants no capability; the component uses the file through the grants it already has.
The suggested name is reduced to a file name, so the dialog never starts in a directory the plugin names, and filters are capped and clipped like other prompt text. Checked-in plugin components are rebuilt for the WIT change.
Co-authored-by: faysou <[email protected]>
Edit › Fill Paragraph (code.fillParagraph, IDEA's FillParagraph) re-wraps the comment or plain-text paragraph at the caret to the hard wrap column: a run of line comments with the same marker, the * lines of a block comment up to a blank line or @tag, or non-blank lines of a plain text file. Code, string literals and read-only editors are left alone. No default shortcut, as in IDEA.
Closes#5680
Co-authored-by: mansur-akhmadi <[email protected]>
Remove All Breakpoints In The Current File (Debugger.RemoveAllBreakpointsInFile) removes the line breakpoints of the file in the active editor, plus the method breakpoints and field watchpoints whose gutter icon is in that file; other files, name-only method breakpoints and exception breakpoints stay. It is in Find Action with no default shortcut. Imported IDEA keymaps and IdeaVim :action now map Debugger.RemoveAllBreakpoints and Debugger.RemoveAllBreakpointsInFile.
Closes#5674
Co-authored-by: mansur-akhmadi <[email protected]>
decorations.set-markdown (API 1.16) draws the same line-end labels as decorations.set and shows each item's markdown_hover as a hover card on the label or the decorated text. The card renders through the shared Markdown path (marked + DOMPurify, media and resource attributes stripped), uses the editor's hover styling, can be resized from its edges, and closes on Escape, an outside click, window blur or leaving the window. Set ids, the 10,000-item and 4 MiB limits and clear are shared with set. SDK: host::set_markdown_decorations and MarkdownDecoration, with a decorations fixture plugin.
Co-authored-by: charli117 <[email protected]>
A web custom editor declared with `binary = true` (API 1.16, web page with `layout = "tab"`) opens a file without creating a text document. Its page reads the file's size with `document.size()` and byte ranges of at most 1 MiB with `document.readRange(offset, length)`, so large binary formats such as Parquet can be read piece by piece. The path is always the editor's own file, never one the page supplies, and messages from the page to the plugin's code carry that file as the editor context.
The manifest field is rejected below API 1.16 and only allowed on tab-layout web editors; the docs and the API 1.16 notes list the new bridge methods.
Co-authored-by: faysou <[email protected]>
DEVSENSE PHP Tools (devsense-php-ls) is one more selectable PHP language server in Settings › Languages & Frameworks › Language Servers, after Phoxite; Intelephense stays the default. Its engine is native (only the npm launcher needs Node), and while it serves it replaces laravel-lsp, as it answers the Laravel strings itself. Docs note which features need a DEVSENSE licence. A managed install can follow.
Fixes#5496
Co-authored-by: Inf1mum <[email protected]>
Code › Duplicate Entire Lines (EditorDuplicateLines, no default shortcut, as in IDEA) copies every line a caret or selection touches below itself, even when only part of a line is selected, and moves the selection onto the copy. On a folded region's line it copies the folded block, as Duplicate Line or Selection does; that path now maps selections as well as carets onto the copy. Imported IDEA keymaps and IdeaVim :action map EditorDuplicateLines to it.
Fixes#5660
Co-authored-by: mansur-akhmadi <[email protected]>
Build › Recompile '<file>.java' (Shift+Cmd+F9 / Ctrl+Shift+F9, moved from Build Module, which keeps no default shortcut) compiles only the active Java file with javac and streams its output and diagnostics to the Build tool window. The menu, editor, tab and Project view entries name the file and are enabled only for local .java files.
- Maven modules resolve the classpath of the file's scope (compile for main sources, test for test sources) through dependency:build-classpath; the probe is now cancellable.
- Gradle projects get the source set's output, compile classpath, source folders and release from an init script.
- Projects without a build tool compile against their Project Structure roots, outputs and libraries.
- In a workspace the file's member project is used.
- javac gets -g, omits an empty -cp, and uses -source/-target on JDK 8; localized javac error and warning prefixes are parsed.
Co-authored-by: RuyimgByCN <[email protected]>