Skip to content

Instantly share code, notes, and snippets.

@Giwan
Created March 31, 2025 08:12
Show Gist options
  • Select an option

  • Save Giwan/486f240ed1b729308e0cf934fd6a067c to your computer and use it in GitHub Desktop.

Select an option

Save Giwan/486f240ed1b729308e0cf934fd6a067c to your computer and use it in GitHub Desktop.
Add current file path in terminal (Keyboard shortcut for VSCode)

Add the current open file into the terminal.

 {
    "key": "cmd+shift+t",
    "command": "workbench.action.terminal.sendSequence",
    "args": { "text": "${relativeFile}" },
    "when": "terminalFocus"
  }

This is useful to quickly test a single file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment