Skip to content

Commit 2c1084d

Browse files
committed
[logseq-plugin-git:commit] 2024-10-09T05:46:40.198Z
1 parent 9aa7856 commit 2c1084d

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed

journals/2024_10_08.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
public:: true
2+
title:: VS_Code
3+
#vscode
4+
5+
- ## Navigate
6+
collapsed:: true
7+
[42 Visual Studio Code Shortcuts for Boosting Your Productivity](https://www.sitepoint.com/visual-studio-code-keyboard-shortcuts/)
8+
- ### Open file
9+
`Ctrl` + `p`
10+
- ### Toggle Side Bar
11+
`Ctrl` + `B`
12+
- ### Navigate tabs
13+
`Ctrl` + `Tab` for **Forward**
14+
`Ctrl` + `Tab`+`Shift` for **Backward**
15+
- ### Navigate Tab Group
16+
`Ctrl` + `1` or `2` or `3`
17+
- ### Navigate To Integrated Terminal
18+
Vocode only provide default hotkey for **open terminal**:`Ctrl` + `J`. In order to navigate to terminal, need to edit `> Preferences : Open Keybord Shortcuts (JSON)`. Add the follow lines:
19+
```json
20+
// Toggle terminal focus
21+
{
22+
"key": "ctrl+KEY_YOU_DEFINE",
23+
"command": "workbench.action.terminal.focus"
24+
}
25+
```
26+
Then the terminal can be focus with `Ctrl` + `KEY_YOU_DEFINE`
27+
-
28+
- ## Git with vscode
29+
- ## git clone
30+
- ## Coo-work Tips
31+
- ### Recommended extesion
32+
`ctrl + shift + P` and type `Extensions: Configure Recommended Extensions (Workspace)`
33+
```json
34+
// Example (in .code-workspace)
35+
"extensions": {
36+
"recommendations": [
37+
"takumii.markdowntable",
38+
"mhutchie.git-graph",
39+
"eamodio.gitlens",
40+
"shd101wyy.markdown-preview-enhanced",
41+
"davidanson.vscode-markdownlint",
42+
"gruntfuggly.todo-tree",
43+
"llvm-vs-code-extensions.vscode-clangd",
44+
"twxs.cmake",
45+
"ms-vscode.cmake-tools"
46+
]
47+
}
48+
```
49+
- ## Warnings and Debug
50+
- ### Visual Studio Code is unable to watch for file changes in this large workspace(error ENOSPC)
51+
52+
**Solutions**
53+
Check Maximum user watches avaliable
54+
```bash
55+
cat /proc/sys/fs/inotify/max_user_watches
56+
```
57+
58+
To change the number of watches avaliable, edit file:
59+
```bash
60+
sudo vim /etc/sysctl.conf
61+
```
62+
63+
Add new line
64+
```bash
65+
fs.inotify.max_user_watches=524288
66+
```
67+
68+
Refresh settings
69+
`sudo sysctl -p`

0 commit comments

Comments
 (0)