58 lines
2.8 KiB
Markdown
58 lines
2.8 KiB
Markdown
# Terminal guide
|
|
|
|
[User guide](../user-guide.md) · [Install a plugin](../plugins.md#install-a-plugin)
|
|
|
|
Install and enable the Terminal plugin to use these controls. The shell runtime must exist on your computer.
|
|
|
|
## Open and arrange terminals
|
|
|
|
Ctrl+` or Ctrl+J shows or hides the terminal, preserving sessions and scrollback.
|
|
New Terminal (Ctrl+Shift+`) creates an independent shell; Split (Ctrl+Shift+5)
|
|
adds a resizable pane in the active group and inherits its current directory/profile.
|
|
The terminal list appears only when multiple sessions exist. Kill terminates a
|
|
session; Delete does the same while a terminal-list entry has focus. Maximize
|
|
and Restore change the panel size without restarting shells.
|
|
|
|
## Choose a shell and its settings
|
|
|
|
The dropdown immediately beside New Terminal offers installed PowerShell,
|
|
PowerShell 7, Git Bash, Command Prompt, and Bash profiles, a default-profile
|
|
picker, terminal settings, tasks, and separate terminal windows
|
|
(Ctrl+Shift+Alt+`). Font size, scrollback, cursor blinking, and default profile
|
|
persist locally. New terminals inherit the app environment, including PATH.
|
|
|
|
## Run scripts and navigate commands
|
|
|
|
Drag across terminal text to select it. Ctrl+C copies a selection.
|
|
Without a selection, Ctrl+C sends an interrupt to the shell. Ctrl+Shift+C also copies selected text.
|
|
|
|
More terminal actions clears scrollback, runs selected editor text, or saves
|
|
and runs the active script. Supported runners include Python, JavaScript,
|
|
PowerShell, Bash, Ruby, Windows batch files, and executables. Their runtimes
|
|
must be installed. Recent-command (Ctrl+Alt+R) and directory (Ctrl+G) pickers
|
|
work while the terminal is focused. Ctrl+Up/Down navigates prompt markers.
|
|
History is kept in memory for the current dock; PowerShell/Bash report commands
|
|
after completion, while Command Prompt captures submitted text at its prompt.
|
|
|
|
## Configure workspace tasks
|
|
|
|
Configure Tasks creates/opens `.runestone/tasks.json`. Its `tasks` array contains
|
|
objects with `label`, `command`, and an optional `profile` ID (`powershell`,
|
|
`pwsh`, `git-bash`, `cmd`, or `bash`). Run Task starts the chosen command in its
|
|
own terminal at the workspace root. Tasks run only when explicitly selected.
|
|
|
|
## Use debugging and dictation tools
|
|
|
|
JavaScript Debug Terminal starts a Node.js REPL with a local inspector on an
|
|
available port. Attach an external debugger using the printed address.
|
|
RuneStone does not provide VS Code's debugger or automatic debug attachment.
|
|
Start Dictation invokes Windows voice typing (Win+H) in the focused terminal;
|
|
Windows microphone/voice-typing configuration is required. Other platforms
|
|
use their operating system's dictation shortcut.
|
|
|
|
## Close detached terminals
|
|
|
|
Closing a detached terminal window terminates its sessions. Switching workspace
|
|
closes detached terminal windows and ends the old workspace's sessions.
|
|
|