Format file in mac
In the botton right, make sure the format show as JavaScript React. In mac, select text; then Shift + Option + F will format the selected text. In ubuntu, Crt + Shift + I
auto save
In file option, click auto save to toggle it. When auto save has a check mark, auto save is on
Terminal
click Terminal tab and select new Terminal to open a terminal. Click delete to get rid of terminal
Search in the file
For ubuntu Crtl + F In mac Command + F
How to find out "Problems in this file" errors in VS Code?
For mac cmd + shift + M
Search file in work space
For mac cmd + p Then type file name
Delete a line
For linux, crtl + shift + k
Coment out multi lines
For linux, choose multi line and crtl + /
For vim
# go to the end of a file
shift + g
# go to the beginning of a file
g + g
vscode does not recognize Django
1. in vscode terminal to find python version used to install Django
pip show Django
2. in right botton corner of vscode, click python version. Choose the same version which is used to inst all Django
Copy / Paste short cut ubuntu
copy: crtl + cpaste: crtl + shift + v
Select entire file
In mac, do it by: command + a
Ask copilot
ctrl + i (ubuntu)
No comments:
Post a Comment