Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 975 Bytes

File metadata and controls

29 lines (16 loc) · 975 Bytes

File Viewer

mcode includes a file viewer/editor that opens files in tiles alongside your terminals. You can read and edit files without leaving the app.

Opening a file

Press Cmd+P (Quick Open), type to filter by filename, and select the file. It opens in a new tile in the current layout (or in the file panel when in kanban expanded view).

You can also click a project name in the title bar to open Quick Open.

Editing and saving

Click anywhere in the file content to start editing. Press Cmd+S to save.

Vim keybindings

Enable Vim keybindings in Settings (Cmd+,) under the Editor section. With vim mode on:

  • :w — save
  • :q — close the tile
  • :wq — save and close

Syntax highlighting

The file viewer uses CodeMirror and automatically detects the language from the file extension. Syntax highlighting applies to all common languages.

Closing a file

Press Cmd+W to close the file viewer tile (same as any other tile).