A quick tutorial for myself.
Github Version
Download VSCode
Click me
Install Extensions
C/C++
C++ Intellisense
Install MinGW
Set Environment Variables
Set folders for C++ program
Structure like this
Download from here or copy codes below
tasks.json
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: g++.exe build active file",
"command": "C:\\MinGW\\bin\\g++.exe",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Task generated by Debugger."
}
],
"version": "2.0.0"
}
settings.json
{
"files.associations": {
"ostream": "cpp",
"array": "cpp",
"atomic": "cpp",
"bit": "cpp",
"*.tcc": "cpp",
"cctype": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"compare": "cpp",
"concepts": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"deque": "cpp",
"string": "cpp",
"unordered_map": "cpp",
"vector": "cpp",
"exception": "cpp",
"algorithm": "cpp",
"functional": "cpp",
"iterator": "cpp",
"memory": "cpp",
"memory_resource": "cpp",
"numeric": "cpp",
"random": "cpp",
"string_view": "cpp",
"system_error": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"utility": "cpp",
"initializer_list": "cpp",
"iosfwd": "cpp",
"iostream": "cpp",
"istream": "cpp",
"limits": "cpp",
"new": "cpp",
"numbers": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"typeinfo": "cpp",
"iomanip": "cpp"
}
}
Start Coding!!
Install Python
Note. There's a checkbox for adding Python to PATH. So basically we don't need to add Python to Environment Variables by ourselves.
Set folders for Python program
Structure like this
Download from here or copy codes below
settings.json
{
"python.pythonPath": "C:\\Users\\User_name\\AppData\\Local\\Programs\\Python\\Python39\\python.exe",
"python.linting.enabled": true,
"python.linting.pylintEnabled": true
}
Install Python Extension
Start Coding!!
Before executing the program, enter below codes in the terminal to install debugger.
pip intall pylint
Enter python (Your_file_name).py in the terminal to run the file.
Install Node.js
Click me
Note. Same as Python, the Environment Variables is already set, there's no need to set it again.
Install Git
Click me
Note. Same as Python and Node.js, the Environment Variables is already set, there's no need to set it again.