Skip to content

Keybinds and user input

Alex edited this page May 28, 2024 · 2 revisions

Numerous keybinds and pointer actions are implemented and supported in the program, with their actions listed below:

Pointer input

  • Code editor
    • Left click - Move cursor to place
    • Shift + left click - Move cursor to place with selection
    • Double left click - Trigger word selection
    • Click + drag - Select range of text
  • Syntax list view
    • Left click - Toggle node expansion state
    • Ctrl + left click - Copy entire text line of node
    • Ctrl + Shift + left click - Copy full text of hovered part of text
    • Alt + left click - Expand current node recursively by N levels, as specified in the settings
    • Ctrl + right click - Move cursor to hovered node
    • Ctrl + Shift + right click - Select hovered node's code snippet span (without trivia) and move cursor to start

Shortcuts

  • Main view
    • Ctrl+S - Open settings
    • Ctrl+R - Reset code
  • Code editor
    • Navigation
      • Up / Down / Left / Right - Move cursor by one character or line
      • Ctrl+Left / Ctrl+Right - Move to next word left or right
      • Home / End - Move to start or end of current line
      • Ctrl+Home / Ctrl+End - Move to start or end of document
      • PageUp / PageDown - Move to next or previous page of visible lines
      • Ctrl+PageUp / Ctrl+PageDown - Move to first or last visible line in the current position
    • Manipulation
      • Back - Delete one character left
      • Delete - Delete one character right
      • Ctrl+Back - Delete one word left
      • Ctrl+Delete - Delete one word right
      • Ctrl+C - Copy current selection
      • Ctrl+X - Cut current selection
      • Ctrl+V - Paste current content on clipboard
      • Ctrl+U - Select outer node on syntax tree view
      • Ctrl+W - Select currently hovered word, moving cursor to next word to move forward by one word on next press
      • Ctrl+Shift+V - Paste current content on clipboard and replace entire snippet with pasted content
      • Ctrl+A - Select all
      • Tab - Insert up to N spaces to fill a N-character section within the line, or increase indentation on selected lines
      • Shift+Tab - Reduce indentation on current or selected lines
Clone this wiki locally