2020 starts with a new vshaxe release! The highlights of this release are:
Something a lot of people have been waiting for: pressing enter after a bracketless
for / etc now automatically increases the indentation:
Note: depending on your code style, auto indentation might require some configuration. Read the wiki page for more info.
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.
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.