I do not think it is possible to open the integrated terminal (or anything in the panel) in a new window directly. If you do not want to use an external terminal you could:
make the terminal its' smallest possible size and maximize it using the "^" button (Image of the ^ button) on demand. You can also set a shortcut for
workbench.action.toggleMaximizedPanelto achieve this more efficiently.create a new VSCode Window and only work with the panel / integrated terminal in the new window.
[Note: This answer is outdated. Now this is directly possible. See the following answers, including hitting Ctrl+k o ]
Answer from Tom Wiesing on Stack ExchangeVideos
I do not think it is possible to open the integrated terminal (or anything in the panel) in a new window directly. If you do not want to use an external terminal you could:
make the terminal its' smallest possible size and maximize it using the "^" button (Image of the ^ button) on demand. You can also set a shortcut for
workbench.action.toggleMaximizedPanelto achieve this more efficiently.create a new VSCode Window and only work with the panel / integrated terminal in the new window.
[Note: This answer is outdated. Now this is directly possible. See the following answers, including hitting Ctrl+k o ]
As several buried answers have pointed out, this is possible now. Here's how, with screenshots:
[
]
Click on the terminal name in the side panel and select "Move Terminal Into Editor Area". This will move the terminal into a new editor tab.
[
]
If you have multiple terminals open, you'll need to right click on it in the list of open terminals instead.
[
]
Right click on the newly-created terminal tab and select "Move Into New Window".
I've asked this elsewhere without luck (so far)... is there any real world difference in memory usage or speed between using the integrated Terminal vs using a separate Terminal process. ps. I'm on Linux under Chrome OS if it makes a difference.
To open a file or directory use the command:
code /path/to/file/or/directory/you/want/to/open
For macOS users, it needs to be installed manually:
- Launch VS Code.
Command + Shift + Pto open the Command Palette.- Type
shell command, to find theShell Command: Install 'code' command in PATHand select to install it. - Restart your terminal.
Per the docs:
Mac OS X
- Download Visual Studio Code for Mac OS X.
- Double-click on VSCode-osx.zip to expand the contents.
- Drag Visual Studio Code.app to the Applications folder, making it available in the Launchpad.
- Add VS Code to your Dock by right-clicking on the icon and choosing Options, Keep in Dock.
Tip: If you want to run VS Code from the terminal, append the following to your ~/.bash_profile file (~/.zshrc in case you use zsh).
code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* ;}Now, you can simply type code . in any folder to start editing files in that folder.
Tip: You can also add it to VS Code Insiders build by changing "com.microsoft.VSCodeInsiders". Also if you don't to type the whole word code, just change it to c.
Linux
- Download Visual Studio Code for Linux.
- Make a new folder and extract VSCode-linux-x64.zip inside that folder.
- Double click on Code to run Visual Studio Code.
Tip: If you want to run VS Code from the terminal, create the following link substituting /path/to/vscode/Code with the absolute path to the Code executable
sudo ln -s /path/to/vscode/Code /usr/local/bin/codeNow, you can simply type code . in any folder to start editing files in that folder.
i’m completely new to vs code and coding in python. I am taking the harvard cs50P course to try and learn. I don’t understand how the terminal works and how to change it though. The instructors screen looks way different and I have a bunch of file information coming up in my terminal. How would i get rid of the user/file/ect? Also if anyone could explain what the difference between different types of terminals like power shell and command prompt. Any help is greatly appreciated.