Save terminal tabs to saved workspace VSCode

Look at the Restore Terminals extension. For example, in your settings.json: “restoreTerminals.runOnStartup”: false, // true is the default // set to false if using a keybinding or command palette “restoreTerminals.terminals”: [ { “splitTerminals”: [ { “name”: “git”, “commands”: [ “cd <your directory>”, “npm run test” // your git command(s) ] } ] }, { “splitTerminals”: … Read more

Why is the default terminal width 80 characters?

As per Wikipedia: 80 chars per line is historically descended from punched cards and later broadly used in monitor text mode source: http://en.wikipedia.org/wiki/Characters_per_line Shall I still use 80 CPL? Many developers argue to use 80 CPL even if you could use more. Quoting from: http://richarddingwall.name/2008/05/31/is-the-80-character-line-limit-still-relevant/ Long lines that span too far across the monitor are … Read more

How to change the terminal to the current directory in visual studio code ? (hotkey) [duplicate]

With VSCode 1.39 (Sept. 2019), no more plugin needed. You now can “Open new terminals with custom working directories“ There is a new command that allows the creation of terminals with a custom current working directory (cwd): { “key”: “cmd+shift+c”, “command”: “workbench.action.terminal.newWithCwd”, “args”: { “cwd”: “${fileDirname}” } } You can create your own keyboard shortcuts … Read more

Shortcut for running terminal command in VS code

Typically you would set up a build or another task or an npm script and then trigger that with a hotkey. There is another new way to do it with send text to the terminal. For example, try this in your keybindings (Preferences: Open Keyboard Shortcuts (JSON)): { “key”: “ctrl+alt+u”, “command”: “workbench.action.terminal.sendSequence”, “args”: { “text”: … Read more

How to use qemu to run a non-gui OS on the terminal?

You can compile qemu for youself and install it into your home directory. There will be no kernel-mode qemu accelerator, but the qemu will work and the speed will be rather high. Qemu has two options for non-gui start: http://wiki.qemu.org/download/qemu-doc.html 2.3.4 Display options: -nographic Normally, QEMU uses SDL to display the VGA output. With this … Read more