diff --git a/docs/en/manuals/images/editor/jump-to-symbol.png b/docs/en/manuals/images/editor/jump-to-symbol.png new file mode 100644 index 00000000..52e99ec3 Binary files /dev/null and b/docs/en/manuals/images/editor/jump-to-symbol.png differ diff --git a/docs/en/manuals/writing-code.md b/docs/en/manuals/writing-code.md index 7d4e9d84..95a41618 100644 --- a/docs/en/manuals/writing-code.md +++ b/docs/en/manuals/writing-code.md @@ -25,7 +25,6 @@ Defold has a built-in code editor that allows you to open and edit Lua files (.l ![](/images/editor/code-editor.png) - ### Code completion The built-in code editor will show code completion of functions while writing code: @@ -36,6 +35,14 @@ Pressing CTRL + Space will show additional information abo ![](/images/editor/apireference.png) +### Jump to symbol + +The built-in code editor can show a searchable list of symbols in the current code file, such as functions, objects, and variables. Select View ▸ Jump to Symbol…, or press Ctrl + Shift + O on Windows and Linux, or ⌘ Cmd + Shift + O on macOS. + +Start typing to fuzzy search the symbols, use the arrow keys to move through the results and preview their locations in the editor, then press Enter to jump to the selected symbol. Press Esc to close the dialog and return to the previous cursor and scroll position. + +![](/images/editor/jump-to-symbol.png) + ### Linting configuration The built-in code editor performs code linting using [Luacheck](https://luacheck.readthedocs.io/en/stable/index.html) and [Lua language server](https://luals.github.io/wiki/diagnostics/). To configure the Luacheck, create a `.luacheckrc` file in the project root. You can read the [Luacheck configuration page](https://luacheck.readthedocs.io/en/stable/config.html) for the list of the available options. Defold uses the following defaults for the Luacheck configuration: