Skip to content

Settings Reference

m0rkeulv edited this page Oct 25, 2026 · 4 revisions

This page lists every settings page the Haxe plugin adds to IntelliJ IDEA, with each option, its default value and the page that explains it in depth. It also points to the settings that live in the Haxe tool window and in run configurations.

Open the settings with File | Settings on Windows and Linux (Ctrl+Alt+S), or IntelliJ IDEA | Settings on macOS (Cmd+,). You can also type an option's name into the search field at the top of the dialog.

Overview

Page Path Applies to
Build Tools: Haxe Settings | Build, Execution, Deployment | Build Tools | Haxe This project
Haxe Compiler Settings | Build, Execution, Deployment | Compiler | Haxe Compiler This project
Debugger: Haxe Settings | Build, Execution, Deployment | Debugger | Haxe This project
Haxe Profiler Settings | Build, Execution, Deployment | Profilers | Haxe Profiler All projects
Documentation Settings | Languages & Frameworks | Haxe | Documentation All projects
Conditional Compilation Settings | Languages & Frameworks | Haxe | Conditional Compilation All projects
Lime, OpenFL and NME targets Settings | Languages & Frameworks | Haxe | Frameworks All projects
Code style Settings | Editor | Code Style | Haxe The selected scheme
Colors Settings | Editor | Color Scheme | Haxe and HXML The selected scheme
Inspections Settings | Editor | Inspections | Haxe The selected profile
Inlay hints Settings | Editor | Inlay Hints
Code folding Settings | Editor | General | Code Folding All projects
Intentions and templates Settings | Editor | Intentions, Live Templates, File and Code Templates
Haxe SDK File | Project Structure | Platform Settings | SDKs All projects

The top-level Settings | Languages & Frameworks | Haxe page and its Frameworks page only group the pages below them; they have no options of their own.

Build Tools: Haxe

Settings | Build, Execution, Deployment | Build Tools | Haxe holds the project's Haxe SDK, the tool paths, the compilation server and the test options. In the Haxe tool window, Haxe Settings | Build Tool Settings… opens this page.

The Build Tools: Haxe settings page with the Haxe SDK, haxelib, runtime overrides, compilation server and test options

The Build Tools | Haxe page; the grayed paths show the values that apply while the fields are empty

Option Default What it does
Haxe SDK <No SDK> The Haxe SDK of the project. Every module uses it unless you pick another SDK for the module in the Haxe tool window. An SDK name shown in red is no longer registered in the IDE.
Haxelib executable Empty The haxelib tool the plugin runs to install libraries, to run Lime, OpenFL, NME and HXP commands, and to run tools. Leave it empty to use the haxelib in the Haxe SDK's folder, or else the one on the PATH. Library paths are resolved with the Haxe SDK's own Haxelib executable, not with this field; see Which haxelib the plugin uses.

The Runtime Overrides section is collapsed until one of its fields is set. Its values apply to this project only and win over the runtimes set on the Haxe SDK. An empty field uses the Haxe SDK's value; grayed text in the field shows the value that applies. A path that does not exist, or a folder without the executable, shows a warning below the field.

Option Default What it does
Neko executable Empty The Neko runtime for Neko programs and tests. Empty falls back to the Haxe SDK, then to the PATH.
HashLink executable Empty The HashLink runtime for HashLink programs, their debugging and tests. A run configuration can override it. When set, the path must exist: the plugin does not fall back to the Haxe SDK. Empty falls back to the Haxe SDK, then to the HASHLINK_* environment variables and the PATH.
NodeJS executable Empty The Node.js runtime for Node.js programs, JavaScript tests and the JavaScript debugger. Empty falls back to the Haxe SDK, then to the PATH. A run configuration can override it.
Flash player executable Empty The standalone Flash Player that runs SWF files. Empty falls back to the Haxe SDK.
Flex/AIR SDK Use the Haxe SDK's Flex/AIR SDK The Flex or AIR SDK for Flash and AIR. The list shows the Flex/AIR SDKs registered in the IDE. Registering one needs the Flash/Flex plugin, which works only with an IntelliJ IDEA Ultimate subscription.

The Compilation Server section is Beta. See Compilation Server.

Option Default What it does
Enable compilation server On Runs a background Haxe compilation server: haxe --server-listen, or haxe --wait for Haxe 3. Builds connect to it for much faster rebuilds, and the compiler-backed editor features need it. Each module can opt out in the Haxe tool window.
Server port Empty Empty picks a free port. Modules on different Haxe SDKs get one server per SDK; a fixed port goes to the first server that starts, and the others pick a free port.
Server arguments Empty Extra arguments for the haxe command line of the server and of the display processes.

The server only runs in a trusted project. Changing the SDK or a compilation server option stops the running servers and display processes; they start again the next time they are needed.

The Tests section is Beta. See Unit Tests.

Option Default What it does
Live test reporting On utest results show up test by test while the run is in progress. When it is off, or when your utest version does not support it, utest reports at the end of the run. The option affects utest only; Flash, AIR and html5 test runs always show utest results while they run. See Live test reporting.

Haxe Compiler

Settings | Build, Execution, Deployment | Compiler | Haxe Compiler sets the language level and the features that ask the Haxe compiler for information. In the Haxe tool window, Haxe Settings | Compiler Settings… opens this page.

Note

Beta. The options from Completion sources down use the compilation server. They need the server enabled under Build Tools: Haxe and for the module, and a build file the compiler can read; plain HXP build scripts do not work. See How the plugin finds the build arguments.

The Haxe Compiler settings page with its language level, completion, connection and compiler feature options

The Haxe Compiler page with every compiler-backed option turned on (not the defaults)

Option Default What it does
Default language level Use the SDK level of each module The Haxe version editor features assume for modules without their own level. Use the SDK level of each module gives each module the level of its Haxe SDK's version, and the newest level to a module without an SDK. The other choices are fixed levels: 3.4, 4.0, 4.1, 4.2, 4.3 and 5.0. See Core Concepts.
Use language level for conditional compilation (haxe_ver) On Evaluates #if (haxe_ver ...) blocks against the language level. When it is off, the module's real compiler version is used. The compilation server always uses its own version. See Conditional Compilation.
Completion sources IDE + compiler (adds generated symbols) Where completion gets its symbols while Use compiler for IDE features (beta) and its Completion option are on; otherwise completion uses the plugin's own analysis only, and the option cannot be changed. IDE only (statically resolved) uses the plugin's own analysis. IDE + compiler (adds generated symbols) adds the types and members that macros create; generated members need Haxe 4.3 or later. Compiler only (the compilation server answers every completion) turns off the plugin's own suggestions. See Code Completion.
Connection mode (Haxe 4 and later) --server-connect (host:port) How the editor features reach the compiler of a Haxe 4 or later SDK. --server-connect (host:port) starts a display process for each SDK: a second Haxe process that answers faster and is not held up by builds, but has a cache of its own. --server-listen (host:port) sends the requests to the server builds use. See Compilation Server.
Connection mode (Haxe 3) --wait stdio The same choice for Haxe 3 SDKs. --wait stdio starts a display process for each SDK, which talks to the IDE through its standard input and error output. --wait host:port sends the requests to the server builds use.
Use compiler for IDE features (beta) Off The features selected below it ask the compilation server instead of the plugin's own analysis, and references to members that only macros generate resolve. Rename and Safe Delete still use the plugin's own analysis.
Use compiler diagnostics (beta) Off Shows the compiler's errors and warnings in the editor. Needs Haxe 4.3.5 or later, or Haxe 3.4.7. See Diagnostics and Inspections.

The options below belong to Use compiler for IDE features (beta). You can change them only while that option is on. They are on by default, so selecting it turns on all of them.

Option Default What it does
Type inlays On Type hints come from the compiler only, through the Compiler types (beta) hint. The plugin's own type hints show nothing, and a declaration the compiler has not answered for shows no hint. See Editor Extras.
Find usages On Find Usages asks the compiler. The highlighting of usages under the caret keeps using the plugin's own analysis. See Refactoring and Navigation.
Navigation On Go to Declaration or Usages asks the compiler. See Refactoring and Navigation.
Open generated members in the post-macro preview On Part of Navigation, and can be changed only while it is on. Go to Declaration or Usages on a member a macro generated opens the preview of the generated code, which takes one build after each change. When it is off, it goes to the position the macro gave the member, for example the field a getter was generated from. See Refactoring and Navigation.
Completion On Completion uses the compiler as Completion sources says. When it is off, completion uses the plugin's own analysis only. See Code Completion.

The four options below belong to Use compiler diagnostics (beta). You can change them only while that option is on.

Option Default What it does
Errors and warnings On Compiler and parser errors, deprecation warnings, unresolved identifiers and missing interface fields.
Unused imports Off Unused imports as the compiler sees them after macros. Replaces the plugin's own unused-import inspection while it is on.
Unused code Off Unused local variables and local functions. Replaces the plugin's matching inspections while it is on. The compiler does not report unused fields or methods.
Compiler diagnostics only Off Turns off the plugin's own error checks and inspections, so the compiler is the only source of problems. Syntax coloring and parser errors stay.

The table at the bottom lists the project's modules, with the columns Module and Language level. A row without a level of its own shows the level the module gets: Project default (…) when Default language level is a fixed level, otherwise From SDK (…) with the level of the module's SDK, or No SDK (…) with the newest level. Pick a level to override it for one module. The Language level row in the Haxe tool window changes the same value and shows the same default.

Debugger: Haxe

Settings | Build, Execution, Deployment | Debugger | Haxe has one option. The page also shows a warning that explains its risks.

Option Default What it does
Render Objects with toString() Off Labels objects in the Variables view with the result of their own toString() instead of the class name. Applies to the HXCPP (IntelliJ) debugger. This runs code of the debugged program every time a value is shown, which can have side effects. A toString() that ends up calling itself crashes HXCPP programs.

During an HXCPP (IntelliJ) debug session, the same switch is also in the settings menu of the Variables view. HashLink sessions do not offer it yet. See Debugging Overview.

Haxe Profiler

Note

Experimental. IntelliJ IDEA Ultimate. This page is only there when the IDE's profiler is available.

Settings | Build, Execution, Deployment | Profilers | Haxe Profiler lists the Haxe profiler configurations. Each configuration has a name and the options of its profiler type. See Profiling Overview.

Profiler type Option Default What it does
HashLink Profiler Samples per second 10000 How often the HashLink runtime samples the call stacks. See Profiling HashLink.
hxcpp Profiler None The hxcpp sampler always runs every 1 ms; the report is written when the program exits. See Profiling HXCPP.
hxcpp Tracy Compression level (0-9) 6 How tightly the session file is packed after the capture. 0 stores it uncompressed.
Capture memory allocations (adds runtime overhead) On Records memory allocations, at some runtime cost. Turn it off for builds that define HXCPP_GC_GENERATIONAL or HXCPP_GC_MOVING.
Collect process CPU (starts the program elevated; Windows and Linux) Off Records the process's CPU use. The program then starts with elevated rights.
Tracy protocol Detect (the client's broadcast, then probing) The Tracy protocol version the plugin offers the program. Detect finds the version of the program's Tracy client; a fixed version is offered alone.
Flash Profiler None The AIR runtime streams its telemetry to the IDE. Works with AIR applications only, not with SWF files in the standalone Flash Player. See Profiling Flash and AIR.
JavaScript Profiler Sampling interval (µs) 1000 The interval between two samples, from 100 to 1000000 µs. Works with Chromium-family browsers only. See Profiling JavaScript.

Languages & Frameworks: Haxe

Documentation

Settings | Languages & Frameworks | Haxe | Documentation controls the editor inside doc comments. See Editor Extras.

Option Default What it does
Highlight code blocks as their language (```haxe fences) On Code in fenced blocks gets the highlighting of its language.
Highlight tags and inline code (@param, `code`) On Highlights doc tags and inline code.
Complete documentation tags On Offers completion for doc tags such as @param.
Enter continues at the previous line's indentation On Pressing Enter in a doc comment keeps the indentation of the line above.

Conditional Compilation

Settings | Languages & Frameworks | Haxe | Conditional Compilation sets how inactive #if branches look. See Conditional Compilation.

Option Default What it does
Dim inactive code toward the background (%) 40 How far the colors of inactive branches fade toward the editor background: 0 keeps the full colors, 100 makes the code invisible.

Lime, OpenFL and NME targets

Settings | Languages & Frameworks | Haxe | Frameworks has one page each for Lime, OpenFL and NME. Each page is a table of the targets you can select for that build system; the table starts with the built-in targets. See Targets and Sections.

Column What it holds
Name The name shown in the target selector.
Haxe target The Haxe target the build compiles to. For information only; it may stay empty.
Flags The command-line flags. The first flag is the tool's target word; extra flags are passed along, for example -64.

The row order is the order of the selector. Restore Defaults loads the built-in targets back into the table.

Editor settings

Code style

Settings | Editor | Code Style | Haxe has the IDE's usual tabs, such as Tabs and Indents, Spaces, Wrapping and Braces and Blank Lines, plus four tabs of its own: Wrap Rules, Imports, Conditional Compilation and hxformat. On the hxformat tab, Use the project's hxformat.json when present is on by default: a file with an hxformat.json in its folder or above is then formatted by that file instead of the scheme. To copy the settings of an hxformat.json into a scheme instead, choose Import Scheme | hxformat.json (haxe-formatter) from the scheme's menu. See Formatting and Code Style.

Colors

Settings | Editor | Color Scheme | Haxe sets the colors of Haxe code. Most entries sit in groups; the rest stand on their own:

Groups Single entries
Comments Unparseable data
String Bad character
Braces and Operators Metadata
Classes and Modules Keyword
Parameters Number
Conditional compilation Reification expressions
Xml/Markup literal Local variable
Injected language

Settings | Editor | Color Scheme | HXML has the entries Key, Value, Comment, Include and ClassName. See Editor Extras.

Inspections

Settings | Editor | Inspections | Haxe lists the plugin's inspections. All of them are on by default; you can turn each one off or change its severity. See Diagnostics and Inspections.

Group Inspections
Build files Define name with a dash, Library not installed, Include file not found. They check hxml files and Lime, OpenFL and NME project files.
Code maturity Deprecated symbol
Compiler diagnostics Compiler errors and warnings, Compiler unused imports, Compiler unused code. They report only while compiler diagnostics are on.
Declaration redundancy Unused import statement, Unused variable, Unused field, Unused method, Unused function
Naming conventions Type Name Correctness, Package Name Correctness
Probable bugs Interpolated String Quotes, Unresolved type, Unresolved symbol
Type compatibility Assignment Type Compatibility, Local Variable Initialization, Incompatible Type Check, 'Is' Operator Type Correctness, Binary Operator Applicability, Unary Operator Applicability, Parameter Default Initializer Compatibility
Validity issues Conditional Compilation (Preprocessing), Duplicate Class Modifiers, Duplicate Class Members, Duplicate Parameter Name, Field Redefinition, Final Field is Initialized, Inherited Interface Method Signature Compatibility, Interface Method Existence, Interface Method Signature Compatibility, Method Overrides, Missing Type Specifier, Overridden Method Signature Compatibility, Property Accessor Existence, Property Accessor Validity, Property Cannot Be Final, Property is Not a Real Variable, Superclass Type Compatibility, Superinterface Type Compatibility

NMML Build Directory Inspection checks NMML project files. It sits directly under Haxe.

Inlay hints

Settings | Editor | Inlay Hints | Types | Haxe has these type hints, all on by default:

  • Enum extractor types
  • Local variable types
  • capture variable types
  • Field types
  • Return types
  • untyped parameters
  • for-loop types
  • Compiler types (beta)

Compiler types (beta) shows hints only while Type inlays under Use compiler for IDE features (beta) is on (see Haxe Compiler); the others then show nothing.

Settings | Editor | Inlay Hints | Parameter names | Haxe has these options:

Option Default
Parameter name hints in constructors On
Parameter name hints in method and function calls On
Parameter name hints in EnumValue constructors On
Parameter name hints also for non-literal arguments Off

See Editor Extras.

Code folding

Settings | Editor | General | Code Folding has four Haxe options. Each one, when selected, folds that kind of region when a file opens. All four are off by default.

  • Haxe: IDEA style regions: /* region title */ ... /* end region */
  • Haxe: FlashDevelop style regions: /*{ region title */ ... /*} end region */
  • Haxe: C#/AS3 style regions: /*# region title */ ... /*# end region */
  • Haxe: Unused conditionally compiled code: #if/#else/#elseif/#end

Intentions and templates

  • Settings | Editor | Intentions | Haxe groups the Haxe intentions under Imports, Declarations, Strings, Types and loops.
  • Settings | Editor | Live Templates | Haxe has the templates iter, itar, ritar, pv, prv, psc, psiv, psv, prsv, pf, prf, psf and prsf.
  • Settings | Editor | File and Code Templates has the templates Haxe Class, Haxe Interface, Haxe Enum, Haxe Abstract, Haxe Module and NMML Project File. On the Other tab, the group Haxe project holds the files the new-project templates create. See Your First Project.

See Editor Extras.

Haxe SDK

Each registered Haxe SDK has its own settings. Open File | Project Structure, select SDKs under Platform Settings and select the SDK. These settings apply in every project that uses the SDK. See Installation for registering an SDK.

Option Default What it does
Haxelib executable Filled in when the SDK is added, if found The haxelib tool of this SDK. The plugin uses it to resolve the libraries of your build files; see Which haxelib the plugin uses.
Neko executable Filled in when the SDK is added, if found Under Runtimes. The Neko runtime. Empty falls back to the PATH.
HashLink executable Empty Under Runtimes. The HashLink runtime for running, debugging and testing HashLink programs. The project's override under Build Tools: Haxe wins over it. Empty: the plugin looks at the HASHLINK_BIN, HASHLINK and HASHLINKPATH environment variables, then the PATH.
NodeJS executable Empty Under Runtimes. The Node.js runtime. Empty falls back to the PATH.
Flash player executable Empty Under Runtimes. The standalone Flash Player.
Flex/AIR SDK Empty Under Runtimes. The Flex or AIR SDK for Flash and AIR. Needs the Flash/Flex plugin, which works only with an IntelliJ IDEA Ultimate subscription.
Remove duplicates On Under Completion. Removes duplicate completion entries when more than one source provides them.

Grayed text in an empty Haxelib executable, Neko executable, HashLink executable or NodeJS executable field shows the tool the plugin finds by itself: the haxelib in the SDK folder, or the tool on the PATH. A path that does not exist, or a folder without the executable, shows a warning below the field. Build Tools: Haxe can override some of these paths for one project.

Settings in the Haxe tool window

Each module's settings live in the Haxe tool window, under the module's IDE environment and Compilation nodes, under each build file's IDE Overrides node and in the context menu of its build files. See The Haxe Tool Window.

Setting Where Default Read more
Haxe SDK IDE environment | SDK Project default (…): the SDK from Build Tools: Haxe Core Concepts
Language level IDE environment | Language level The default from Haxe Compiler: Project default (…), From SDK (…) or No SDK (…) Core Concepts
Define overrides IDE Overrides | Defines under a build file, or Manage IDE Overrides… None Defines and Custom Targets
Custom target IDE Overrides | Custom target under an hxml build file, or Manage IDE Overrides… None Defines and Custom Targets
Build command Compilation | Build command The module's default build file with its default action; (not set) without one, and Build Project skips the module Building and Running
Compilation server Compilation | Compilation server On Compilation Server
Connection mode Compilation | Connection mode The value Haxe Compiler sets for the Haxe version of the module's SDK: Haxe 3, or Haxe 4 and later Compilation Server
Active build file Set as Active Build File on a build file Build Files
Tests build file Mark as Tests Build File on a build file None Unit Tests
Working directory Set Working Directory… on an hxml build file Build Files
Selected target or section The build file's Target or Section row Targets and Sections

IDE Overrides are kept per build file. They only affect code analysis, compiler-backed features included, and are never added to build commands. The Compilation server row only has an effect while the server is enabled under Build Tools: Haxe.

The build file a source file is analyzed under is chosen in the status bar, not in the tool window. See Resolve Context.

Settings in run configurations

Program-specific settings, such as the file to run, the browser or the Node.js executable, live in the run configurations. The plugin adds these types:

  • Under the Haxe group: HashLink Application, HXCPP Application (IntelliJ), HXCPP Application (vshaxe), HXCPP Application (legacy), Haxe Interpreter, Haxe Web Browser, Node.js Application, Haxe Flash Application, Haxe AIR Application, Neko Application and Haxe Action.
  • Haxe Unit Tests.
  • The before-launch step Run Haxe action, which runs an action of a build file before a run configuration starts. See Building and Running.

See Run Configurations for every field. The JavaScript debugger takes its browsers from the IDE's Settings | Tools | Web Browsers and Preview page.

Environment variables

The plugin reads these environment variables. The IDE must have been started with them set.

Variable What it is used for
HASHLINK_BIN, HASHLINK, HASHLINKPATH Where to find hl when neither Build Tools: Haxe nor the Haxe SDK sets a HashLink executable. Each may point to the executable or to its folder. The PATH comes after them.
AIR_SDK Flash and AIR tests, and running a Haxe AIR Application: where to find the AIR SDK's adl when no Flex/AIR SDK is selected.
HAXEPATH The folder suggested when you add a Haxe SDK.
HAXE_STD_PATH When you add a Haxe SDK: the standard library folders, separated like PATH. Every folder it lists that exists is used, and the compiler's default folders are not, as the compiler itself does. Its first folder also suggests the SDK folder.
NEKO_INSTPATH When you add a Haxe SDK: the Neko install folder, checked first for the Neko executable.
NEKOPATH When you add a Haxe SDK: Neko's own search path. Every folder it lists is checked next for the Neko executable, before the PATH.

Where the settings are saved

Project settings are saved in the project's .idea folder:

File Holds
haxeBuildTools.xml Build Tools: Haxe
haxeCompiler.xml Haxe Compiler, including the module language levels
haxeDebuggerSettings.xml Debugger: Haxe
haxeBuildConfig.xml The per-module settings of the Haxe tool window except the language level and the connection mode: environment, build command, Compilation server switch, build files, actions and tools; and the IDE Overrides of each build file
haxeFormatter.xml The hxformat.json chosen with Use as Haxe Formatting Rules

The selected target and hxml section of each build file, and the tool window's Filter choices, are saved per user, in the project's workspace.xml. The pages marked "All projects" in the overview are saved with the IDE's own settings.

Clone this wiki locally