Skip to content

cohuynhh/self-study-mastering-vscode

Repository files navigation

Mastering Visual Studio Code

Course link: https://www.udemy.com/course/mastering-visual-studio-code/

Summary


Basic VSCode commands

Ctrl + Shift + P: Open Command Palete

Ctrl + Spacebar: Intelisense

Ctrl + Spacebar (2 times): Display the function documentation

Type /** + Tab: comment block before the function

NPM commands

npm init
npm install moment --save
npm install eslint
npm install -g typescript
npm install -g ts-node

Run the .ts file: tsc typescriptFile.ts

Directly run typescript file: npx ts-node typescriptFile.ts npm i -g npx

npx ts-node src/Server.ts

Basic GIT commands

git --version
git init
git status
git add .
git remote add origin yourRepoUrl
git commit -m "commit message"
git push origin master
git clone 'link-to-repo'