PhaserEditor2D-v3 icon indicating copy to clipboard operation
PhaserEditor2D-v3 copied to clipboard

Open with VSCode

Open BenoitFreslon opened this issue 2 years ago • 1 comments

Hello, It will be cool if we could open .ts or .js file with VS Code. With a double click or with the context menu. image

BenoitFreslon avatar Apr 06 '22 14:04 BenoitFreslon

Ok.

For now you can open vscode in the current project Ctrl+Alt+U. Or open the current scene's js/ts code with Ctrl+Alt+E.

PhaserEditor2D avatar Apr 06 '22 14:04 PhaserEditor2D

Will work on implementing opening with system's default text editor.

zombiestruck avatar Oct 27 '22 04:10 zombiestruck

Will work on implementing opening with system's default text editor.

Well, not the system's default text editor, else VS Code.

PhaserEditor2D avatar Oct 27 '22 10:10 PhaserEditor2D

Will work on implementing opening with system's default text editor.

Well, not the system's default text editor, else VS Code.

Does this mean the only external editor is VSCode?

aunpyz avatar Apr 15 '23 16:04 aunpyz

Hi @aunpyz

I can provide the two options, the system text editor and vs code. For now vs code goes first because it is the code editor we better support.

PhaserEditor2D avatar Apr 17 '23 01:04 PhaserEditor2D

Done.

Now you have two commands for enabling/disabling to open coding files in the configured external editor:

commands

The coding files are: .js, .ts, .html, .css.

You can configure the external editor. By default, it is Visual Studio Code, so probably you don't need to configure another external editor.

Look the -external-editor-command server option: https://help-v3.phasereditor2d.com/misc/server-options.html

PhaserEditor2D avatar Apr 26 '23 14:04 PhaserEditor2D