Skip to main content

· One min read
Luiz Rosalba

When you start a project and want to configure Vscode terminal to access you github:

1) Generate a Personal Access token (PAT) on Github Personal Icon -> Settings -> Developer Settings-> Personal Access token -> Fine or Classic ( fine gives you more control about what token allows vscode to do) -> generate new token and keep note of it

2) on Vscode

3) trying to push will activate a popup that can be filled with you PAT

4) config is done !

· One min read
Luiz Rosalba

When you want to switch from git Working tree to file you don't need to find the file. Add the shortcut to your keybindings.json

1) Open Keyboard Shortcuts on File>Preferences>Keyboard Shortcuts 2) click on the folder icon , this will open keybindings.json 3) add and save :

{
"key": "ctrl+shift+q",
"command": "git.openFile",
"when": "editorFocus && isInDiffEditor"
},
{
"key": "ctrl+shift+q",
"command": "git.openChange",
"when": "editorFocus && !isInDiffEditor"
}

Now hitting ctrl+shift+q with the file open will switch from git tree to file .

Source :

https://code.visualstudio.com/docs/getstarted/keybindings https://stackoverflow.com/questions/44737285/vs-code-shortcut-for-toggling-git-open-changes-and-git-open-file/48655811#48655811

· One min read
Luiz Rosalba

Vscode won't search node modules by default. Vs code have some default patterns to exclude folders from search , local history, watcher, auto reveal and auto import.

To make Vscode search in node_modules and others patterns included on search patterns deselect the button on search :

Disable exclude Patter

To edit the patterns :

"Open VS User Settings (Main menu: File > Preferences > Settings). This will open the setting screen. Search for files:exclude in the search at the top. Configure the User Setting with new glob patterns as needed. In this case add this pattern node_modules/ then click OK. The pattern syntax is powerful."

exlude Pattern config

Source :

https://zditect.com/blog/50686898.html