question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Alignment of typescript formatting between Phaser Editor and Visual Studio Code

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jrabekcommented, Aug 4, 2021
0reactions
PhaserEditor2Dcommented, Sep 21, 2021

thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeScript editing with Visual Studio Code
VS Code includes a TypeScript formatter that provides basic code formatting with reasonable defaults. Use the typescript.format.* settings to configure the ...
Read more >
Minor formatting issues when generating Typescript code #147
Two minor formatting issues when generating Typescript code that differs from how Visual Studio and default eslint Typescript rules format. Note ...
Read more >
Visual Studio Code compatibility — Phaser Editor 2D Help
The Visual Studio Code editor is prefect for writing the code of the Phaser Editor 2D games. First, t is extremely popular and...
Read more >
How do you change the formatting options in Visual Studio ...
go to file -> preferences -> settings search for format , on the left side, click on Text Editor , the very first...
Read more >
Adventures in Phaser with TypeScript–Why it's Hello World of ...
For TypeScript development there are two clear leaders to chose from, both of which I have access to licenses for. Visual Studio and ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found