IDE配置

IDE配置

vscode

通用

1
2
3
4
5
6
7
8
9
"files.autoSave": "afterDelay",//自动保存
"files.autoSaveDelay": 100,
"files.autoGuessEncoding": true,//打开文件时猜测编码
"editor.cursorBlinking": "smooth",//平滑滑动效果
"editor.cursorSmoothCaretAnimation": "on",
"editor.smoothScrolling": true,
"workbench.list.smoothScrolling": true,
"terminal.integrated.smoothScrolling": true,
"editor.mouseWheelZoom": true,//鼠标滑动控制字体大小

插件:

  • JetBrains快捷键:JetBrains IDE Keymap
  • JetBrains图标:JetBrains Icon Theme

刷题场景(cpp)

模板文件配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
"pyheader": {
"prefix": "header",
"body": [
"/**",
" * @author: d4wn",
" * @desc: $1",
" * @alter: $2",
" * @date: ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE} ${CURRENT_HOUR}:${CURRENT_MINUTE}:${CURRENT_SECOND}",
" * @url: $3",
" */",
"",
"#include <iostream>",
"#include <vector>",
"using namespace std;",
"",
"int main()",
"{",
"\tSolution s = Solution();",
"}"
],
"description": "test"
}
}

配置python格式化代码不自动换行

进入settings.json

添加或修改如下配置:

1
2
3
4
{
"python.formatting.provider": "autopep8",
"autopep8.args": ["--max-line-length=800"]
}

重启vscode

插件

  • 开启本地web服务器:Live Server
  • 远程开发:Remote SSH
  • 图标主题:Material Icon Theme
  • 格式化代码:Material Icon Theme
  • 在函数上面快速添加注释:Doxygen Documentation Generator
  • 暗黑主题:One Dark Pro
  • C/C++环境:C/C++
  • Python环境(包括格式化代码):Python,autopep8
  • shell脚本(包括Dockerfile)的格式化:shell-format
  • Docker相关:Docker用来端口转发或者inspect等,Dev Containers用来编辑docker内部代码
  • pdf阅读:vscode-pdf

Goland

配置注释生成:插件Goanno

Pycharm

长代码不换行

image-20231025014923707

IDE配置
https://d4wnnn.github.io/2023/05/21/Others/IDE配置/
作者
D4wn
发布于
2023年5月21日
许可协议