Skip to content
DOCS

The editor

Write your plugin's code in Studio's editor, with tabs, split panes, the file tree, search and the command palette.

Click Editor in the activity bar, or press ⇧⌘E (Ctrl+Shift+E on Windows).

FilesLink to this section

The sidebar's Files tab shows the project. Click a file to open it; Option-click (Alt-click on Windows) opens it in the other pane. Right-click a file or folder for more actions. Drag files to move them, or drop files in from Finder or Explorer.

Build output, node_modules, .git and Studio's .freqlab folder aren't shown. Changed files are marked A (new) or M (changed).

Images open in a viewer, and audio files in a player.

Tabs and panesLink to this section

  • An accent dot on a tab means unsaved changes; an amber dot means the file changed on disk. If it changes while you have unsaved edits, a banner asks whether to Keep My Edits or Use the File on Disk.
  • Right-click a tab to pin it or close others. ⇧⌘T (Ctrl+Shift+T) reopens the last closed tab.
  • Split the editor with ⌘\ (side by side) or ⇧⌘\ (stacked); Ctrl+\ and Ctrl+Shift+\ on Windows. Drag tabs between the two panes.

Find your wayLink to this section

TomacOSWindows
Open a file by name⌘PCtrl+P
Run any command⇧⌘PCtrl+Shift+P
Search all files⇧⌘FCtrl+Shift+F
Find in this file⌘FCtrl+F
Replace in this file⌥⌘FCtrl+H
Go to a symbol in this file⇧⌘OCtrl+Shift+O

Search finds text across the project, with case, whole-word and regular-expression options, and include and exclude filters. It skips files your .gitignore ignores. There's no replace across files.

The toolbarLink to this section

Save and Save All, split, the Problems panel (⇧⌘M, Ctrl+Shift+M on Windows), the Terminal (⌃`, Ctrl+`), the chat drawer (⌘J, Ctrl+J), Mark Version, the file's history, and Open in external editor. Choose your external editor for Rust and C++ projects in Settings, Editor, External Editors.

SettingsLink to this section

Settings, Editor has the font, tab size, word wrap, auto save, Vim mode, minimap and more.

FormattingLink to this section

⇧⌥F (Shift+Alt+F on Windows) formats the file. In Settings, Editor, Format on save formats the languages you pick each time you save (with rust-analyzer, clangd, Prettier or the editor's own formatter), and Format on paste re-indents pasted code to fit. Prettier formats web files (HTML, CSS and JavaScript); set it up under Prettier on the same page. A project's own .editorconfig or Prettier config overrides those settings.