远程连接服务器配置
- 1.安装Remote-SSH
参考教程1,参考教程2 - 2.config配置文件
其中配置文件参考如下:
注意:Host temp_aliyun ServerAliveInterval 50 ServerAliveCountMax 3 HostName 47.104.176.95 User root Port 22 IdentityFile ~/.ssh/id_rsa.pub IdentitiesOnly yes
如果提示错误load pubkey "\342\200\252C:\\Users\\sss\\.ssh\\id_rsa": Invalid argument
, 则检测路径是否写错,如果没有写错依然提示,则可能是编码问题,如果复制过来的,建议可以尝试删了手写一遍。 - 3.修改缓存路径,vscode会产生很多ipch相关文件,这个非常占据空间,它是vscode缓存的一些信息,可以定期删除,或者修改缓存路径。推荐后者方案,可以将其设置到空间比较大的盘上去。配置方法,参考此链接,在VSCode找到设置→扩展→C/C++→Intelli Sense Cache Path,如上图。1处写明了vscode默认Intelli Sense缓存文件路径所在位置,windows和Linux不同;2处可以更改为你要保存缓存文件的位置。据我所知,这些缓存文件删了也不影响的之前的文件的,所以可以随时删~只是每次编译又会重新产生,所以还是把缓存路径改为别的盘吧.
颜色配置
文件->Preferences->Settings-> 搜索color,找到一个setting.json
点击.
配置活动页的标钱背景tab.activeBackground
:
颜色选择:https://www.runoob.com/html/html-colorvalues.html
{
"editor.wordWrap": "on",
"explorer.confirmDelete": false,
"diffEditor.ignoreTrimWhitespace": true,
"workbench.sideBar.location": "left",
"editor.rulers": [
80
],
"C_Cpp.intelliSenseCachePath": "/mnt2/neu/yusong/vscode_cache",
"python.analysis.cacheFolderPath": "/mnt2/neu/yusong/vscode_cache",
"editor.tabSize": 2,
"editor.detectIndentation": false,
"[python]": {
"editor.formatOnType": true
},
"cmake.configureOnOpen": true,
"window.zoomLevel": -1,
"security.workspace.trust.untrustedFiles": "open",
"cmake.statusbar.advanced": {
},
"workbench.colorCustomizations": {
// "tab.activeForeground": "#FFFFFF",
"tab.activeBackground": "#A9A9A9"
}
}
更多设置:
插件
错误提示
error Lens插件: