Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Sublime2 bundle for haXe programming language
Python
Branch: master
Pull request Compare This branch is 502 commits behind clemos:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
elementtree
input
.gitignore
Comments.HaXe.tmPreferences
Default.sublime-keymap
HSS.sublime-build
HSS.tmLanguage
HaXe.sublime-completions
HaXe.sublime-settings
HaXe.tmLanguage
HaxeComplete.py
Hxml.sublime-build
Hxml.sublime-completions
Hxml.tmLanguage
NMML.tmLanguage
README.markdown
RunBuild.sublime-macro
SaveAllAndBuild.sublime-macro
SelectBuild.sublime-macro
class.sublime-snippet
const.sublime-snippet
enum.sublime-snippet
for-()-{}.sublime-snippet
function-(f).sublime-snippet
function-(fun).sublime-snippet
if-___-else-(ife).sublime-snippet
if.sublime-snippet
interface.sublime-snippet
main.sublime-snippet
private-var-(pv).sublime-snippet
property-(prop).sublime-snippet
public-var-(pu).sublime-snippet
switch.sublime-snippet
var-(v).sublime-snippet

README.markdown

Introduction

An Haxe Bundle for Sublime Text 2

Features

  • Syntax highlighting for haxe sources, hxml build files and hss
  • Haxe compiler completion, code hints and error highlighting
  • Package and classes discovery/completion supporting hxml classpath (-cp) and haxelib libraries (-lib)
  • NME completion, target selection and compilation
  • Automatic generation of hxml files, multiple build/hxml management, and -lib autocompletion based on haxelib
  • Haxelib integration (haxelib install)
  • Code snippets, auto-import, Sublime build system integration

and more to come :)

Installation

Sublime Package Control

The bundle is available through Package Control

Mac OSX

cd /Users/<username>/Library/Application\ Support/Sublime\ Text\ 2/Packages
git clone git://github.com/<fork author>/haxe-sublime2-bundle.git HaXe

Linux

cd ~/.config/sublime-text-2/Packages
git clone git://github.com/<fork author>/haxe-sublime2-bundle.git HaXe

Windows

(Using git bash http://code.google.com/p/msysgit/)
cd /c/Users/<username>/AppData/Roaming/Sublime\ Text\ 2/Packages
git clone git://github.com/<fork author>/haxe-sublime2-bundle.git HaXe

Restart Sublime Text 2

Usage

  • Open your project's directory (where the .hxml or .nmml resides) in Sublime Text, the build file should be detected automatically,
  • Edit your classes (check the cool snippets, like 'prop'-Tab)
  • Completion is triggered either automatically by dot and colon keys, or manually by Ctrl+Space.
  • Open parenthesis and comma keys display haxe type hints in the status bar

Shortcuts

  • Press Ctrl+Shift+B to either automatically generate an hxml file if none exist, edit the build file if only one build exists or select among multiple builds (--next)
  • Press Ctrl+Enter to run the current/selected build
  • Press Ctrl+I on a qualified class name to shorten it and generate the import statement. Safe to use if the class is already imported.
  • Press Ctrl+Shift+L to install a library via haxelib

Targeting NME

haxe NME is based on a specific .nmml file (the .hxml is generated) which is supported by this bundle.

  • press Ctrl+Shift+B to select a NME target
  • press Ctrl+Enter to build and run (regular Sublime Text build system won't work)

Reviews

SublimeText Editor Video Tutorial

Haxe workflow with Sublime Text 2, Php & nme examples

Haxe IDE Choices for Mac OS X

Something went wrong with that request. Please try again.