Alignment of typescript formatting between Phaser Editor and Visual Studio Code
See original GitHub issueSince Visual Studio Code is the preferred editor work working with Phaser Editor 2D (https://help.phasereditor2d.com/v3/code-editor/vscode-compatibility.html), it would be nice to have a recommended set of settings or tweak the codegen so that the formatting of the generated code matches the autoformatting that Visual Studio applies to Typescript.
On https://code.visualstudio.com/docs/getstarted/settings look for the following:
// Enable/disable default TypeScript formatter.
"typescript.format.enable": true,
Right now if the TypeScript format on save is enabled in Visual Studio Code, it will make it seem like changes are introduced when they are just formatting changes. Conversely, every time Phaser Editor generates the project it also makes it seems like the code has changed when in reality Visual Studio just reformatted the file.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (5 by maintainers)

Top Related StackOverflow Question
Example of formatting differences from another ticket: https://github.com/PhaserEditor2D/PhaserEditor2D-v3/issues/136#issuecomment-885657715
thanks!