快捷键Ctrl+shift+p,输入configure display language
安装简体中文包
左侧扩展 搜索 chinese 安装 chinese(Simplified)...包
#screen版
yum -y install screen
安装完成后新建一个窗口,此命令创建一个名为codeserver的窗口并进入
screen -S codeserver
左下角的齿轮 -> Extensions -> 搜索 “Python” -> 选择搜索到的 python extension -> 点击右侧的 Install 进行安装
创建了一个 my_project 的目录
点击 “Add Folder” 按钮将我刚才创建的 my_project 目录添加到当前工作空间
/root/.local/share/code-server/User/settings.json
{
"python.defaultInterpreterPath": "/opt/conda/envs/nlp/bin/python", #默认conda虚拟环境
"python.condaPath": "/opt/conda/envs/nlp/bin/python"
// Nomal
"editor.fontSize": 18,
"workbench.iconTheme": "vscode-icons",
"vsicons.dontShowNewVersionMessage": true,
"editor.minimap.enabled": true,
"workbench.colorTheme": "Visual Studio Light",
"workbench.startupEditor": "newUntitledFile",
// 保存格式化
"files.autoSave": "onFocusChange",
"editor.formatOnPaste": true,
"editor.formatOnType": true,
// Env
"java.home": "/usr/local/jdk1.8.0_162",
"maven.executable.path": "/usr/local/apache-maven-3.6.0/bin/mvn",
"java.configuration.maven.userSettings": "/usr/local/apache-maven-3.6.0/conf/settings.xml",
"maven.terminal.customEnv": [
{
"environmentVariable": "JAVA_HOME",
"value": "/usr/local/jdk1.8.0_162"
}
],
"python.formatting.provider": "yapf",
"python.autoComplete.addBrackets": true,
"python.jediEnabled": false,
"python.linting.pylintEnabled": true,
// exclude file
"files.exclude": {
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true,
"**/.vscode": true,
"**/.empty": true,
},
// code-runner
"code-runner.clearPreviousOutput": true,
"code-runner.runInTerminal": false,
// 执行文件的脚本,可以使用绝对路径
"code-runner.executorMap": {
"python": "/usr/local/anaconda3/python3",
"scala": "/usr/local/scala-2.11.12/bin/scala",
"java": "cd $dir && javac $fileName && java $fileNameWithoutExt",
},
}