Haxe IDE and Editors

FlashDevelop 4 is currently the preferred Editor for Haxe projects amongst Haxe users, but it is windows based. Non-windows users mainly use SublimeText2, but other options exist.

IDEs

  • FlashDevelop 4 is the state of the art IDE for Haxe on Windows, offering code completion, a Flash debugger, and project templates for all targets, including NME. Read more here, if you're on Linux or Mac you may want to try MonoDevelop, but the MonoDevelop bindings are currently only setup for NME haxe development.
  • FDT, Intelij and Monodevelop have some support for Haxe and don't require windows so have some popularity see below.

Text Editors

  • Sublime Text is the rising star of the code editors. Similar to TextMate but crossplatform, it is highly extensible and already has a great ecosystem of plugins, including one for haxe.
  • Textmate a popular Mac editor, Textmate supports a lot of features for coding in Haxe. Many IDE's (including Intellij) support Textmate's specification for syntax highlighting. Read more about it here. Windows users can use E-TextEditor using the same bundle.
  • GEdit and Vim are also popular see below.

Other Editors, Plugins and Addons

exuberant ctags


Many editors (Vim, Emacs, JEdit, ...) support tag files which allow them to implement "goto declaration" features easily.

Put into your ~.ctags file:

  --langdef=haxe
  --langmap=haxe:.hx
  --regex-haxe=/^package[ \t]+([A-Za-z0-9_.]+)/\1/p,package/
  --regex-haxe=/^[ \t]*[(@:macro|private|public|static|override|inline|dynamic)( \t)]*function[ \t]+([A-Za-z0-9_]+)/\1/f,function/
  --regex-haxe=/^[ \t]*([private|public|static|protected|inline][ \t]*)+var[ \t]+([A-Za-z0-9_]+)/\2/v,variable/ 
  --regex-haxe=/^[ \t]*package[ \t]*([A-Za-z0-9_]+)/\1/p,package/
  --regex-haxe=/^[ \t]*(extern[ \t]*|@:native\([^)]*\)[ \t]*)*class[ \t]+([A-Za-z0-9_]+)[ \t]*[^\{]*/\2/c,class/
  --regex-haxe=/^[ \t]*(extern[ \t]+)?interface[ \t]+([A-Za-z0-9_]+)/\2/i,interface/
  --regex-haxe=/^[ \t]*typedef[ \t]+([A-Za-z0-9_]+)/\1/t,typedef/
  --regex-haxe=/^[ \t]*enum[ \t]+([A-Za-z0-9_]+)/\1/t,typedef/
  --regex-haxe=/^[ \t]*+([A-Za-z0-9_]+)(;|\([^)]*:[^)]*\))/\1/t,enum_field/

Then run

  ctags -R .

In the directories you want to create a tag file index for. Vim plugins run it automatically for you.

version #20082, modified 2014-04-24 01:13:16 by JLM