From 92bf372133ec9b0841490a1fd26518912a7e8613 Mon Sep 17 00:00:00 2001 From: esea_info Date: Wed, 12 Apr 2023 09:21:03 +0800 Subject: [PATCH] basis --- .gitignore | 5 +++ .vscode/settings.json | 91 ++++++++++++++++++++++++++++++++++++++++++ icon.ico | Bin 0 -> 1150 bytes 3 files changed, 96 insertions(+) create mode 100644 .gitignore create mode 100644 .vscode/settings.json create mode 100644 icon.ico diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b315aa5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +/__pycache__/ +/dist/ +/build/ +/*/__pycache__ +*.log \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..f7c5140 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,91 @@ +{ + // 控制字体大小(像素) + "editor.fontSize": 16, + // 在 #editor.wordWrap# 为 wordWrapColumn 或 bounded 时,控制编辑器的折行列。100 列后换行 + "editor.wordWrapColumn": 100, + // 控制tab键是空格还是制表符 true 空格 false制表符 + "editor.detectIndentation": false, + // tab 对应空格大小 + "editor.tabSize": 4, + // 在保存时格式化文件。 + "editor.formatOnSave": false, + // 开启 vscode 文件路径导航 + "breadcrumbs.enabled": true, + // prettier 是否在每行末尾添加分号 ,C_cpp有用 + "prettier.semi": false, + // prettier 设置强制单引号 + "prettier.singleQuote": true, + // 尽可能控制尾随逗号的输出。 有效选项: 'none' - 无尾随逗号 ' es5' - 在ES5中有效的尾随逗号(对象,数组等) 'all' - 尾随逗号 尽可能(函数参数) + "prettier.trailingComma": "none", + // 定义函数参数括号前的空格处理方式。 + "javascript.format.insertSpaceBeforeFunctionParenthesis": true, + // 鼠标滚轮缩放, ctrl+滚轮 + "editor.mouseWheelZoom": true, + "editor.defaultFormatter": "ms-python.vscode-pylance", + "files.encoding":"utf8", + + // 针对python文件将 tab改为4个空格 + "[python]": { + "editor.insertSpaces": true, + "editor.tabSize": 4 + }, + + + + // 代码格式化 astyle,需要安装astyle 程序-适用C c++ java + // "astyle.executable": "D:\\AStyle\\bin\\astyle.exe", //window + // "astyle.executable": "/usr/bin/astyle", // linux + // "astyle.additional_languages": [ + // "c", + // "cpp", + // "*.h", + // ], + // "astyle.cmd_options": [ + // // 预定义风格 ----------------------------------------------------------- + // // "--style=ansi", //ANSI 风格格式和缩进 + // // "--style=kr", //Kernighan&Ritchie 风格格式和缩进 + // "--style=linux", //Linux 风格格式和缩进 + // //"--style=gnu", //GNU 风格格式和缩进 + // // "--style=java", //Java 风格格式和缩进 + // "--indent=spaces=4", //缩进4个空格 + // "--indent-preproc-block", + // "--pad-oper", //操作符两端插入一个空格 + // "--pad-header", + // "--unpad-paren", + // "--suffix=none", + // "--align-pointer=name", + // "--lineend=linux", + // "--convert-tabs", //TAB转换为空格 + // "--verbose", + // // "--delete-empty-lines", //删除多余空行 + // //"--pad-paren-in", //括号内部加入空格 + // "--unpad-paren", //移除括号两端多余空格 + // ], + + // pylint --python风格 pylint程序 + // "python.linting.enabled": true, + // "python.linting.pylintEnabled": true, + // "python.linting.lintOnSave": true, + // "python.linting.pylintPath": "D:\\pylint\\bin\\pylint.exe", + // "python.linting.pylintArgs": [ + // "--rcfile={path}/.pylintrc", + // "--extension-pkg-whitelist=PyQt5", + // "--disable=invalid-name,missing-module-docstring", + // "--disable=W0612,W0631,W0703,W0621,W0613,W0611,W1308,C0411,C0111,C0103,C0301,C0304,C0305,E1101,R0913,R0914,R0915,R0903" , + // ], + + + // 执行的终端选择,可选 + "terminal.integrated.defaultProfile.windows" : "PowerShell", + // "terminal.integrated.defaultProfile.windows" : "Git Bash", + // "terminal.integrated.defaultProfile.windows" : "Windows PowerShell", + // "terminal.integrated.defaultProfile.windows": "Ubuntu-20.04 (WSL)", + + "python.defaultInterpreterPath": "python3", // python3 或 python + "code-runner.executorMap": { + "python":"python3 -u $fullFileName" + }, + + + +} \ No newline at end of file diff --git a/icon.ico b/icon.ico new file mode 100644 index 0000000000000000000000000000000000000000..9d501c8d2984e1c930bdce344789dc448dbca948 GIT binary patch literal 1150 zcma)+ZAep57=T|tpr{}Dt6)Ug!sfTzOs5zW4qKVdtrW2@arMI=2BB7>l$zo`*tOiq zrJE@x_*I4}W(6u(27zmCp(Jyg_F;vqMJaBYZ|BY&F$q1F_nvd!bDrnD+;h1AKI94r z0CEq6Tz`O_01!-qq)28pPdWgyw%LXV@NaCEqxW6C(hsF&J=@P_z08wj52$3)_K0M` zE3jB@Y^W(Ld3Xf_9$Ulffi>> z>@*%rvtrPm5fmo(>J{>4u2|Sb9O`urnpIMCU6YI*HRFuq*)TE5g6Ze2$m5M-Ebj$z zbm$ebMy@#ZK5^XhI6N%hB%|w!GG@^*;liM6=C><#HRcn4QGYNE|w@D5Z`# z+MuMQ7gXxDtpdJD8nWN&6pB8f-sD8@HurrQua%fEjMap~)S(*rDzALr0!t zevtuNIzJ#^(2d+Ecik>sy_Qi?PP1=3?Am}*Ho(tCov%2xDJSAUojoSH71PfQVhE{w zI)frCsq1D9Ysk8uQfgt|)#@uwsm+OwteHE=QPJ!}x^AVL9b3nECvH{OgHG4rmzS&N z=U-CgXzpltRoZ#L-b3%D I8T$Y52gX0J2LJ#7 literal 0 HcmV?d00001