2020 starts with a new vshaxe release! The highlights of this release are:

Auto Indentation

Something a lot of people have been waiting for: pressing enter after a bracketless if / else / for / etc now automatically increases the indentation:

Same for case and default in switch :

Note: depending on your code style, auto indentation might require some configuration. Read the wiki page for more info.

Sort Imports

The Haxe extension already some support for VSCode’s “Organize Imports” feature, but it only removed unused ones. Now it also sorts the imports alphabetically like you would expect.

We also added a separate “Sort Imports” code action if you only want to sort imports without removing unused ones. Both of these can be configured to automatically run when saving the file (similar to “format on save”), have a look at the wiki for more details.

Extract Constant

This is the first refactoring code action that vshaxe supports, with more planned in the future. It replaces all occurences of a string literal with a constant.

Full list of changes as always in the changelog. Also, a big thanks to @RblSb and @ablum for their contributions to this release.