# Text editor keyboard shortcuts The code pane is a full code editor, so the usual editing shortcuts apply. --- ## Worth knowing * The code pane has to have focus for these to work. * On macOS, Cmd replaces Ctrl throughout. * Escape closes the search panel and cancels a multi-cursor selection. --- ## Shortcuts | **Shortcut** | **Does** | | --------------------- | --------------------------------------------- | | Ctrl+F | Find | | Ctrl+H | Replace | | Ctrl+D | Select the next occurrence of the selection | | Alt+drag | Column select | | Alt+click | Add a cursor | | Tab / Shift+Tab | Indent / outdent the selection | | Ctrl+/ | Toggle a comment, where the language has them | | Ctrl+Z / Ctrl+Shift+Z | Undo / redo | | Ctrl+A | Select all | | Home / End | Start / end of line | --- ## A few things that catch people out * Ctrl+D repeatedly is the quickest way to rename every occurrence of a node. * Indentation is significant in several languages. Use Tab on a selection rather than editing each line. * Comment syntax differs per language; the shortcut uses the right one. --- ## Related [Fix text editor problemsPreviews that will not render, and missing languages.](https://help.gocapable.com/diagrams/fix-text-editor-problems.html) [Code pane and live previewSource on one side, diagram on the other.](https://help.gocapable.com/diagrams/code-pane-and-live-preview.html) [Text editorBack to the editor overview.](https://help.gocapable.com/diagrams/text-editor.html) --- _The source is right there. Read it._