最近感觉pycharm越来越臃肿了 尤其是项目稍微大一点的时候 每次conda安装完依赖pycharm重新加载一遍的过程特别漫长 因此想要换vscode来开发
vscode之前有接触过 但是不多 基本是用来弥补pycharm检索问题才用vscode
现在想转到vscode开发python
请各位热佬毫不吝啬的推荐推荐好插件~
2 个赞
好像也就这几个吧,能对python语法进行高亮识别,能调试,基本也就够了吧
2 个赞
我也是,用pycharm安装的库太多了,打开之后要等一分钟才能用
- 微软python三件套
- ruff (完全取代autopep8 black等代码格式化,ruff基于rust,性能优越)
- error lens (错误行直接显示)
- jupyter系列 (边code边调试)
没人诶,帮顶一下
1 个赞
顶一下
1 个赞
楼上的python三件套,够用了,设置环境,调试等等功能绰绰有余,顶多再安一个彩色缩进
正在尝试新的东西,uv+ruff
pylance
2 个赞
前排围观~
很好,插件已经安装好了,教程项目搁哪学
"surround.custom": {
"pythonClass": {
"description": "python class definition",
"label": "class",
"languageIds": [
"python"
],
"snippet": "class ${1:ClassName}(${2:object}):\n\t$TM_SELECTED_TEXT\n$0"
},
"pythonDef": {
"description": "python function definition",
"label": "def",
"languageIds": [
"python"
],
"snippet": "def ${1:function_name}(${2:parameters}):\n\t$TM_SELECTED_TEXT\n$0"
},
"pythonElif": {
"description": "python else if condition",
"label": "elif",
"languageIds": [
"python"
],
"snippet": "elif ${1:condition}:\n\t$TM_SELECTED_TEXT\n$0"
},
"pythonElse": {
"description": "python else statement",
"label": "else",
"languageIds": [
"python"
],
"snippet": "else:\n\t$TM_SELECTED_TEXT\n$0"
},
"pythonForLoop": {
"description": "python for loop",
"label": "for",
"languageIds": [
"python"
],
"snippet": "for ${1:item} in ${2:iterable}:\n\t$TM_SELECTED_TEXT\n$0"
},
"pythonFromImport": {
"description": "python from import statement",
"label": "from import",
"languageIds": [
"python"
],
"snippet": "from ${1:module} import ${2:function_or_class}\n$0"
},
"pythonIf": {
"description": "python if condition",
"label": "if",
"languageIds": [
"python"
],
"snippet": "if ${1:condition}:\n\t$TM_SELECTED_TEXT\n$0"
},
"pythonImport": {
"description": "python import statement",
"label": "import",
"languageIds": [
"python"
],
"snippet": "import ${1:module}\n$0"
},
"pythonLambda": {
"description": "python lambda function",
"label": "lambda",
"languageIds": [
"python"
],
"snippet": "lambda ${1:arguments}: $TM_SELECTED_TEXT\n$0"
},
"pythonTryExcept": {
"description": "python try except statement",
"label": "try except",
"languageIds": [
"python"
],
"snippet": "try:\n\t$TM_SELECTED_TEXT\nexcept ${2:Exception} as ${3:e}:\n\t$4\n$0"
},
"pythonTryFinally": {
"description": "python try finally statement",
"label": "try finally",
"languageIds": [
"python"
],
"snippet": "try:\n\t$TM_SELECTED_TEXT\nfinally:\n\t$2\n$0"
},
"pythonWhileLoop": {
"description": "python while loop",
"label": "while",
"languageIds": [
"python"
],
"snippet": "while ${1:condition}:\n\t$TM_SELECTED_TEXT\n$0"
},
"pythonWith": {
"description": "python with statement",
"label": "with",
"languageIds": [
"python"
],
"snippet": "with ${1:expression} as ${2:variable}:\n\t$TM_SELECTED_TEXT\n$0"
}
},