Please note the instructions below are for the old deprecated luxe alpha only.
Full code completion and building from the IDE are typically supported.
See the following pages for setup instructions.
https://www.sublimetext.com/ (version 3)
setup instructions
Mac / Windows / Linux
https://atom.io/
setup instructions
Mac / Windows / Linux
https://code.visualstudio.com/
Setup instructions below
Mac / Windows / Linux
To use VSCode with luxe:
- Install VSCode
- Install vshaxe extension - Instructions
- Create the following files if you don't have them already:
- Create a
.vscode
folder in your project - Create
.vscode/settings.json
- Create
.vscode/tasks.json
- Create a
vshaxe needs to know which hxml file to use for code completion.
With luxe, specify the hxml file inside your bin folder, as it is always going to be correct for your project.flow file.
If the bin folder doesn't exist yet for your target of choice, you may need to run
flow info <target>
orflow compile <target>
once to generate it for you. For example, to build for web and there is nobin/web.build/
runflow info web
to generate it.
:todo: This should be fixed/not necessary.
You can specify multiple configurations, and switch between them from the command palette "Haxe: Select display configuration".
{
"haxe.displayConfigurations": [
["bin/mac64.build/build.hxml"], //mac build
["bin/web.build/build.hxml"] //web target
]
}
To build and run your project from vscode you just need a tasks file. These are documented by vscode itself, but for ours it's a basic command.
If you want to run a specific target, add it to the args, i.e "args": ["run", "web"]
or add multiple tasks (see vscode documentation).
You can access the command palette to see tasks options, but there is usually a default key for Run Build Task
. On mac this is Cmd-Shift-B
for example. This will run your project.
{
"version": "2.0.0",
"command": "flow",
"args": ["run"],
"problemMatcher": "$haxe"
}
Windows Only
HaxeDevelop is a build of FlashDevelop for Haxe.
The instructions are the same for both, but the setup page will mention FlashDevelop.