Skip to content

appsinacup/godot_vscode_ide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Godot VSCode

example

Website Discord


VSCode running inside the Godot game engine.


Godot VSCode

This repo embeds VSCode editor to the Godot Engine as an addon through a webview.

How to install

Download addons folder (Download Zip option from GitHub) and put in your project. You can also install from Godot Asset Library Godot VSCode.

Then, enable it by going to Project Settings -> Plugins -> Godot VSCode (Enabled ON).

Setup

There are 2 ways to use the editor:

  • Tunnel (Recommended): For this, make sure the Project -> Project Settings -> editor/ide/auto_start_tunnel property is on. The tunnel will start automatically in the Terminal Tab. After you get an URL for it (From the terminal tab), simply copy that URL and put it in the: Project -> Project Settings -> editor/ide/vscode_url. Now it will always connect automatically to the tunnel (locally). You may need to authenticate with GitHub.
  • External Folder: For this, simply load an external folder in Code.

If you want to hide the old Script editor, go to:

  • Editor ->
    • Manage Editor Features... ->
      • (Disable) Script Editor

Note:

This will hide the previous Script editor in favour of the new `Code` based one.

How it works?

It creates a Webview node and loads the website https://vscode.dev. Then, it creates a tunnel from your local vscode by running code tunnel (automatically) and connects to that.

VSCode Presentation

Project Settings

The plugin adds the following project settings under editor/ide/:

  • vscode_url (String, default: "https://vscode.dev"): The URL to load in the VSCode webview
  • auto_start_tunnel (bool, default: true): Whether to automatically start the VSCode tunnel when the editor starts

You can disable the auto-start tunnel and manually start it using "Project → Tools → Start VSCode tunnel" from the menu.

Dependencies

  • appsinacup/godot_wry: Fork of godot_wry (Webview component) that fixes some sizing issue, adds option to open new tab, drag-and-drop handler, updates to latest version of wry, etc.

Star History

Star History Chart

About

Adds vscode to the godot engine

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors