Skip to content

Alignment of typescript formatting between Phaser Editor and Visual Studio Code #137

@jrabek

Description

@jrabek

Since 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions