List of essential tools
User snippet: File -> Prefference -> User snippets
File Location: `~/.config/Code/User/snippets/`
Snippet extension: vscode-easy-snippet
(from VS Code: ctrl+P "ext install inu1255.easy-snippet")
https://github.com/inu1255/vscode-easy-snippet
To use:
setup keyboard shortcuts (file -> preference -> keyboard shortcuts, search "easySnippet")
Sync:
sync to Dropbox, add this to crontab
0 8-21 * * * rsync -avuc --delete /home/bing/.config/Code/User/snippets/ /home/bing/Dropbox/VSCodeSnippets/
automatic git commit
(1) add a script file
#!/bin/bash
cd /home/bing/.config/Code/User/snippets;
if [[ $(git status -s) ]];then
git add .;
git commit -a -m "`date`";
git push;
fi
(2) then add to crontab
`1,11,21,31,41,51 * * * * /home/bing/git/BingsBin/commitSnippets.sh`