How to use linux commands in Visual Studio Code terminal

A memo when setting to use Linux commands when opening a terminal with VS Code of Windows.

Advance preparation

This setting is premised on using GitBASH, so install it from the following site. https://gitforwindows.org/

Configuration

Add the following to VSCode settings.json (See here for how to open settins.json)

settings.json


  "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\git-cmd.exe",
  "terminal.integrated.shellArgs.windows": [
    "--command=usr/bin/bash.exe",
    "-l",
    "-i"
  ]

This will cause the terminal to reference the commands you are using in GitBash. Will be.

reference

https://code.visualstudio.com/docs/editor/integrated-terminal#_windows

Recommended Posts

How to use linux commands in Visual Studio Code terminal
Time when terminal disappears in Visual Studio Code
Preparing to use Tensorflow (Anaconda) with Visual Studio Code
Beginners! Basic Linux commands and how to use them!
How to install Google Test / Google Mock in Visual Studio 2019
How to debug the Python standard library in Visual Studio
How to use classes in Theano
How to use VS Code in venv environment on windows
How to use SQLite in Python
How to use Mysql in python
How to use ChemSpider in Python
Remote debugging in Visual Studio (Linux)
How to use PubChem in Python
Linux commands related to character code
How to run TensorFlow 1.0 code in 2.0
How to use calculated columns in CASTable
[Introduction to Python] How to use class in Python?
How to use Google Test in C
[Linux] How to use the echo command
How to use the Linux grep command
How to execute commands in jupyter notebook
How to use Anaconda interpreter in PyCharm
How to use __slots__ in Python class
How to use regular expressions in Python
How to use Map in Android ViewPager
How to use is and == in Python
How to hide the command prompt when running python in visual studio 2015
How to use VS Code (code server) with Google Colab in just 3 lines
Tips when amateurs use Flask in Visual Studio
How to use the C library in Python
How to set Django DB to mongodb visual studio 2019
How to use Python Image Library in python3 series
Summary of how to use MNIST in Python
How to write regular expression patterns in Linux
How to handle Linux commands well from Python
How to use tkinter with python in pyenv
Settings for Python coding in Visual Studio Code
How to use xml.etree.ElementTree
How to use virtualenv
How to use Seaboan
How to use image-match
How to use shogun
How to use Pandas 2
How to use Virtualenv
How to use numpy.vectorize
How to use pytest_report_header
How to use partial
How to use Bio.Phylo
Linux commands to remember
How to use SymPy
How to use x-means
How to use WikiExtractor.py
How to use IPython
How to use virtualenv
How to use Matplotlib
How to use iptables
How to use numpy
How to use TokyoTechFes2015
How to use venv
How to use dictionary {}
How to use Pyenv