|

楼主 |
发表于 2020-12-10 14:23:50
|
显示全部楼层
launch.json
- {
- // 使用 IntelliSense 了解相关属性。
- // 悬停以查看现有属性的描述。
- // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
- "version": "0.2.0",
- "configurations": [
- {
- "name": "gcc.exe - 生成和调试活动文件",
- "type": "cppdbg",
- "request": "launch",
- "program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
- "args": [],
- "stopAtEntry": false,
- "cwd": "C:\\Users\\Administrator\\AppData\\Local\\Programs\\Microsoft VS Code\\mingw64\\bin",
- "environment": [],
- "externalConsole": false,
- "MIMode": "gdb",
- "miDebuggerPath": "C:\\Users\\Administrator\\AppData\\Local\\Programs\\Microsoft VS Code\\mingw64\\bin\\gdb.exe",
- "setupCommands": [
- {
- "description": "为 gdb 启用整齐打印",
- "text": "-enable-pretty-printing",
- "ignoreFailures": true
- }
- ],
- "preLaunchTask": "C/C++: gcc.exe build active file"
- }
- ]
- }
复制代码
tasks.json
- {
- // See https://go.microsoft.com/fwlink/?LinkId=733558
- // for the documentation about the tasks.json format
- "version": "2.0.0",
- "tasks": [
- {
- "label": "build",
- "type": "shell",
- "command": "msbuild",
- "args": [
- // Ask msbuild to generate full paths for file names.
- "/property:GenerateFullPaths=true",
- "/t:build",
- // Do not generate summary otherwise it leads to duplicate errors in Problems panel
- "/consoleloggerparameters:NoSummary"
- ],
- "group": "build",
- "presentation": {
- // Reveal the output only if unrecognized errors occur.
- "reveal": "silent"
- },
- // Use the standard MS compiler pattern to detect errors, warnings and infos
- "problemMatcher": "$msCompile"
- }
- ]
- }
复制代码
settings.json
- {
- "files.associations": {
- "*.vue": "vue",
- "*.wpy": "vue",
- "*.wxml": "html",
- "*.wxss": "css"
- },
- "terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
- "git.enableSmartCommit": true,
- "git.autofetch": true,
- "emmet.triggerExpansionOnTab": true,
- "emmet.showAbbreviationSuggestions": true,
- "emmet.showExpandedAbbreviation": "always",
- "emmet.includeLanguages": {
- "vue-html": "html",
- "vue": "html",
- "wpy": "html"
- },
- //主题颜色
- //"workbench.colorTheme": "Monokai",
- "git.confirmSync": false,
- "explorer.confirmDelete": false,
- "editor.fontSize": 14,
- "window.zoomLevel": 1,
- "editor.wordWrap": "on",
- "editor.detectIndentation": false,
- // 重新设定tabsize
- "editor.tabSize": 2,
- //失去焦点后自动保存
- "files.autoSave": "onFocusChange",
- // #值设置为true时,每次保存的时候自动格式化;
- "editor.formatOnSave": false,
- //每120行就显示一条线
- "editor.rulers": [
- ],
- // 在使用搜索功能时,将这些文件夹/文件排除在外
- "search.exclude": {
- "**/node_modules": true,
- "**/bower_components": true,
- "**/target": true,
- "**/logs": true,
- },
- // 这些文件将不会显示在工作空间中
- "files.exclude": {
- "**/.git": true,
- "**/.svn": true,
- "**/.hg": true,
- "**/CVS": true,
- "**/.DS_Store": true,
- "**/*.js": {
- "when": "$(basename).ts" //ts编译后生成的js文件将不会显示在工作空中
- },
- "**/node_modules": true
- },
- // #让vue中的js按"prettier"格式进行格式化
- "vetur.format.defaultFormatter.html": "js-beautify-html",
- "vetur.format.defaultFormatter.js": "prettier",
- "vetur.format.defaultFormatterOptions": {
- "js-beautify-html": {
- // #vue组件中html代码格式化样式
- "wrap_attributes": "force-aligned", //也可以设置为“auto”,效果会不一样
- "wrap_line_length": 200,
- "end_with_newline": false,
- "semi": false,
- "singleQuote": true
- },
- "prettier": {
- "semi": false,
- "singleQuote": true
- }
- },
- "update.mode": "none",
- "editor.suggest.snippetsPreventQuickSuggestions": false,
- "C_Cpp.intelliSenseEngineFallback": "Enabled",
- "C_Cpp.clang_format_sortIncludes": true,
- "C_Cpp.default.includePath": [
- "C:\\Users\\Administrator\\AppData\\Local\\Programs\\Microsoft VS Code\\mingw64\\include"
- ],
- "C_Cpp.default.cStandard": "c99"
- }
复制代码 |
|