张芷铭的个人博客

清理ssh host 缓存

清理ssh host 缓存

1
2
3
4
5
6
7
8
9
# MAC电脑上,一般存放路径如下:
ls -la ~/Library/Application\ Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/

# 删除 VS Code 的 SSH 缓存目录(这会强制重建所有缓存)
rm -rf ~/Library/Application\ Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/

# 同时也可以清理 VS Code 的通用缓存
rm -rf ~/Library/Application\ Support/Code/Cache/
rm -rf ~/Library/Application\ Support/Code/CachedData/
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61

'num'
{

// Use IntelliSense to learn about possible attributes.

// Hover to view descriptions of existing attributes.

// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387

"version": "0.2.0",

"configurations": [

{

"name": "Python Debugger: Current File",

"type": "debugpy",

"request": "launch",

"program": "${file}",

"console": "integratedTerminal",

"args": [

"--model", "glm-4-private-FC",

"--test-category", "rest"

]

},

{

"name": "Python Debugger:executable_parallel_multiple_function",

"type": "debugpy",

"request": "launch",

"program": "${file}",

"console": "integratedTerminal",

"args": [

"--model", "ipo:glm-4-air-biz",

"--test-category", "executable_parallel_multiple_function"

]

}

]

}

快捷键

代码折叠相关的快捷键:

  • 折叠当前代码块:Cmd + Shift + [
  • 展开当前代码块:Cmd + Shift + ]
  • 折叠所有子代码块:Cmd + K Cmd + [
  • 展开所有子代码块:Cmd + K Cmd + ]
  • 折叠所有代码块:Cmd + K Cmd + 0
  • 展开所有代码块:Cmd + K Cmd + J

💬 评论