0

I want to change the terminal for a better presentation of my project, so I don't want to use the integrated VS Code terminal, I would like to use my system's own terminal which is Alacritty (I'm using linux)

I've been changing the settings in VSCode's settings.json file, but no matter how hard I try I couldn't get the Ctrl + j command to open the alacritty terminal as a floating terminal.

What I want to achieve is almost the same as with AstroNvim, when using the open terminal floating command, it opens Alacritty as a float.

starball
  • 20,030
  • 7
  • 43
  • 238
XNeyMo
  • 15
  • 2

1 Answers1

0

The keyboard command ID you're looking for is workbench.action.terminal.openNativeConsole. Ex. in keybindings.json (open using Preferences: Open Keyboard Shortcuts (JSON) in the command palette):

{
    "key": "", // TODO: pick something.
    "command": "workbench.action.terminal.openNativeConsole",
    "when": "!terminalFocus",
},

If you want to use ctrl+j, then put "ctrl+j" in the key property's value. But I wouldn't suggest doing that because ctrl+j is the default binding for toggling the panel's visibility- not opening a new integrated terminal. So unless you plan to replace the keybinding for toggling the panel's visibility, or don't care to toggle the panel visibility with a keyboard shortcut, I'd suggest to use something else.

starball
  • 20,030
  • 7
  • 43
  • 238