|
@@ -9,7 +9,7 @@ You can modify the settings of the editor from the Preferences window. The prefe
|
|
|
|
|
|
## General
|
|
|
|
|
|
-{srcset="images/editor/[email protected] 2x"}
|
|
|
+
|
|
|
|
|
|
Load External Changes on App Focus
|
|
|
: Enables scanning for external changes when the editor receives focus.
|
|
@@ -32,7 +32,7 @@ Path to custom keymap
|
|
|
|
|
|
## Code
|
|
|
|
|
|
-{srcset="images/editor/[email protected] 2x"}
|
|
|
+
|
|
|
|
|
|
Custom Editor
|
|
|
: Absolute path to an external editor. On macOS it should be the path to the executable inside the .app (eg `/Applications/Atom.app/Contents/MacOS/Atom`).
|
|
@@ -45,12 +45,29 @@ Open File at Line
|
|
|
|
|
|
Code editor font
|
|
|
: Name of a system installed font to use in the code editor.
|
|
|
-◊
|
|
|
+
|
|
|
+
|
|
|
+### Open script files in Visual Studio Code
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+To open script files from the Defold Editor directly in Visual Studio Code, you must set the following settings by specifying the path to the executable file:
|
|
|
+
|
|
|
+- MacOS: `/Applications/Visual Studio Code.app/Contents/MacOS/Electron`
|
|
|
+- Linux: `/usr/bin/code`
|
|
|
+- Windows: `C:\Program Files\Microsoft VS Code\Code.exe`
|
|
|
+
|
|
|
+ Set these parameters to open specific files and lines:
|
|
|
+
|
|
|
+- Open File: `. {file}`
|
|
|
+- Open File at Line: `. -g {file}:{line}`
|
|
|
+
|
|
|
+The `.` character here is required to open the entire workspace, not an individual file.
|
|
|
|
|
|
|
|
|
## Extensions
|
|
|
|
|
|
-{srcset="images/editor/[email protected] 2x"}
|
|
|
+
|
|
|
|
|
|
Build Server
|
|
|
: URL to the build server used when building a project containing [native extensions](/manuals/extensions). It is possible to add a username and access token to the URL for authenticated access to the build server. Use the following notation to specify the username and access token: `username:[email protected]`. Authenticated access is required for Nintendo Switch builds and when running your own build server instance with authentication enabled ([refer to the build server documentation](https://github.com/defold/extender/blob/dev/README_SECURITY.md) for more information). The username and password can also be set as the system environment variables `DM_EXTENDER_USERNAME` and `DM_EXTENDER_PASSWORD`.
|
|
@@ -60,7 +77,7 @@ Build Server Headers
|
|
|
|
|
|
## Tools
|
|
|
|
|
|
-{srcset="images/editor/[email protected] 2x"}
|
|
|
+
|
|
|
|
|
|
ADB path
|
|
|
: Path to [ADB](https://developer.android.com/tools/adb) command line tool installed on this system. If you have ADB installed on your system, the Defold editor will use it to install and run bundled Android APKs to a connected Android Device. By default, the editor checks if ADB is installed in well-known locations, so you only need to specify the path if you have ADB installed in a custom location.
|