---
# System prepended metadata

title: Linux - How to install and set up VScode
tags: [Linux, VScode]

---

###### tags:`Linux` `VScode`

# Linux - How to install and set up VScode
install VScode ==**not in command line**==

## Step 1. Go to website
:paperclip: [Visual Studio Code](https://code.visualstudio.com/)

## Step 2. Click ==**.deb**== 
click and download
![](https://i.imgur.com/mJj1BAU.png)

## Step 3. Go to your file manager
- go to Download, you'll see a zip file you just download
![](https://i.imgur.com/I60aPYt.png)
- terminal 
    >``` cd ~/Downloads```
    ![](https://i.imgur.com/E9IWUWh.png)


## Step 4. Install
- type code below on terminal
    >```sudo dpkg -i [filename]```
    >![](https://i.imgur.com/FBKVj60.png)cod

## Step 5. Open it 
:tada:  congradulation!
- terminal
    ![](https://i.imgur.com/RhK2Klp.png)
- application 
    ![](https://i.imgur.com/G592kOL.png)
    
## Step 6. C/C++ in VScode
#### (1) install essential tool that will need
```        sudo apt install buil-essential ```
#### (2) plugin extension of C/C++
![](https://i.imgur.com/BXqRFfV.png)
#### (3) create a c/c++ file
##### code
```c=1
#include<stdio.h>
int main(){
    printf("Hello World\n");
    return 0;
}
```
#### picure
![](https://i.imgur.com/92SEcFG.png)

### (4) press `Ctrl`+`Shift`+`B` to compile
#### click first one
![](https://i.imgur.com/tzqoKV2.png)
#### revise the code in `task.json`
![](https://i.imgur.com/Lid6K6Z.png)
#### create a file name bin
![](https://i.imgur.com/JtGmaSk.png)


### (5) press `Ctrl`+`Shift`+`B` to compile again
:tada: successful!
![](https://i.imgur.com/XBA8akZ.png)

### (6) type the execution file name in \bin\
![](https://i.imgur.com/s9kAiCP.png)



## Reference
:paperclip: [how to install](https://learningsky.io/tools-ubuntu-install-visual-studio-code/)
:paperclip: [VScode for C/C++](https://www.youtube.com/watch?v=9pjBseGfEPU&list=PLxrVsqcpsInFBMunKBe5iwPQ8kmKm7hzL&index=16&t=417s)

