Try โ€‚โ€‰HackMD
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

Step 2. Click .deb

click and download

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More โ†’

Step 3. Go to your file manager

  • go to Download, you'll see a zip file you just download
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More โ†’
  • terminal

    cd ~/Downloads

Step 4. Install

  • type code below on terminal

    sudo dpkg -i [filename]

    cod

Step 5. Open it

:tada: congradulation!

  • terminal
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More โ†’
  • application
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More โ†’

Step 6. C/C++ in VScode

(1) install essential tool that will need

sudo apt install buil-essential

(2) plugin extension of C/C++

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More โ†’

(3) create a c/c++ file

code
#include<stdio.h> int main(){ printf("Hello World\n"); return 0; }

picure

(4) press Ctrl+Shift+B to compile

click first one

revise the code in task.json

create a file name bin

(5) press Ctrl+Shift+B to compile again

:tada: successful!

(6) type the execution file name in \bin\

Reference

:paperclip: how to install
:paperclip: VScode for C/C++