View & Edit your project’s code directly in Knot
The Code Editor interface with syntax highlighting, file explorer, and live preview
Cmd/Ctrl + P
Access the Code Editor
Navigate your files
Make your changes
Save your work
Cmd/Ctrl + S
to save the current file, or use auto-save to save changes automatically.F2
File explorer showing project structure with context menu options
Alt/Option
and click to add multiple cursors, allowing you to edit multiple locations simultaneously.
Cmd/Ctrl + \
to split the editor.
Split view showing HTML and CSS files side-by-side
Action | Windows/Linux | Mac |
---|---|---|
Save file | Ctrl + S | Cmd + S |
Open file | Ctrl + P | Cmd + P |
Find in file | Ctrl + F | Cmd + F |
Find & Replace | Ctrl + H | Cmd + H |
Comment line | Ctrl + / | Cmd + / |
Duplicate line | Ctrl + D | Cmd + D |
Move line up/down | Alt + ↑/↓ | Option + ↑/↓ |
Multi-cursor | Alt + Click | Option + Click |
Action | Windows/Linux | Mac |
---|---|---|
Go to definition | F12 | F12 |
Find all references | Shift + F12 | Shift + F12 |
Rename symbol | F2 | F2 |
Format document | Shift + Alt + F | Shift + Option + F |
Toggle terminal | Ctrl + `` | Cmd + `` |
Cmd/Ctrl + Shift + P
to open the command palette for quick access to all editor commandsCmd/Ctrl + S
)Cmd/Ctrl + Click
to jump to its definition.