Skip to content

Setting Up an IDE or Editor

Robert Konrad edited this page Jun 13, 2022 · 7 revisions

Setting Up Your Development Environment

Setting up Visual Studio Code

Visual Studio Code can be used by installing the Kha Extension Pack. This is the recommended setup and Kha-projects can just be opened directly.

Setting up HaxeDevelop

You can not create Kha projects right within HaxeDevelop but if you run khamake it will create a HaxeDevelop project inside the build subdirectory of your project for your chosen target system. Load it into HaxeDevelop and you're ready to go.

Setting up Sublime Text

Download and install Sublime Text and Package Control.

Use Package Control to install the Haxe package.

To make autocomplete work, create a project with khamake, open the project directory in Sublime Text, expand the build folder, then right click the hxml file of your target and choose "Add haxe build file to project".

Setting up Atom

Download and install Atom. Go to settings, (Ctrl-,), navigate to the install tab. Search for and install the haxe package (by snowkit), language-haxe (by theRemix), and linter (by atom-community).

To make autocomplete work, create a project with khamake, open the project directory in Atom, expand the build folder, then right click the hxml file of your target and choose "Set as active HXML file". You may need to do a full build through khamake, and will need to rebuild through terminal upon every asset, shader etc change. To build in atom (with asset etc changes), press Ctrl-B. The package Terminal-plus can integrate a terminal into atom.

Clone this wiki locally