惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Blog — PlanetScale
Blog — PlanetScale
J
Java Code Geeks
N
Netflix TechBlog - Medium
Martin Fowler
Martin Fowler
A
About on SuperTechFans
腾讯CDC
B
Blog RSS Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Microsoft Azure Blog
Microsoft Azure Blog
D
Docker
Y
Y Combinator Blog
Microsoft Security Blog
Microsoft Security Blog
F
Fortinet All Blogs
I
InfoQ
博客园 - 【当耐特】
美团技术团队
GbyAI
GbyAI
量子位
宝玉的分享
宝玉的分享
爱范儿
爱范儿
有赞技术团队
有赞技术团队
博客园 - Franky
L
LangChain Blog
阮一峰的网络日志
阮一峰的网络日志

博客园 - 华腾智算

逐个注释 前端学习全景图 · HTML5 + CSS3 全部知识点 前端学习全景图 从零实现跨平台 3D 引擎架构方案 2026年的跨平台 GUI 开发趋势 杀毒 现代图形学的本质 C++快速掌握之一 rust控制流-各种循环 rust控制流 rust函数和注释 rust复核类型--元组tuple和数组 rust的类型 rust常量和变量 rust正确的猜数游戏 rust猜数游戏2 rust猜数游戏 字体选型 20260810代码 理解图形学之一入门 Rust 标准库 `std` 中最常用、最核心的模块和类型 Rust 标准库std RUST教程 rust理解一 rust多文件组织 - 华腾智算 Cargo.toml Rust 语言教程 C#常用 C#第六天异常 通俗易懂解释编程-适用于任何编程语言
完整的跨平台 settings.json(飞雪飘鸿优化版)
华腾智算 · 2026-03-13 · via 博客园 - 华腾智算

{
// ==================== 全局设置(所有平台通用) ====================
"window.zoomLevel": 1,
"workbench.colorTheme": "Default Dark Modern",
"workbench.preferredDarkColorTheme": "Default Dark Modern",
"window.autoDetectColorScheme": false,
"workbench.iconTheme": "material-icon-theme",
"editor.fontSize": 14,
"editor.fontFamily": "'JetBrains Mono', 'Fira Code', '等线', monospace",
"editor.fontLigatures": true,
"editor.tabSize": 2,
"editor.lineHeight": 22,
"editor.letterSpacing": 0.5,
"editor.renderWhitespace": "selection",
"editor.renderControlCharacters": true,
"editor.cursorBlinking": "smooth",
"editor.tokenColorCustomizations": {
"comments": "#6a9955",
"strings": "#ce9178",
"keywords": "#569cd6",
"functions": "#dcdcaa"
},

// ==================== 分屏与窗口布局 ====================
"workbench.editor.restoreViewState": true,
"workbench.editor.showTabs": true,
"workbench.editor.tabSizing": "shrink",
"workbench.editor.splitInGroupLayout": "vertical",
"workbench.startupEditor": "newUntitledFile",
"workbench.editor.enablePreview": false,
"workbench.layout.enabled": true,

// ==================== 文件操作与Git ====================
"files.autoSave": "onFocusChange",
"files.eol": "\n",
"git.autofetch": true,
"git.enableSmartCommit": true,
"git.confirmSync": false,
"git.ignoreMissingGitWarning": true,

// ==================== 代码格式化 (Prettier) ====================
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"prettier.semi": false,
"prettier.singleQuote": true,
"prettier.jsxSingleQuote": true,
"prettier.printWidth": 80,
"prettier.eslintIntegration": true,

// ==================== 代码校验 (ESLint) - 已修复废弃配置 ====================
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html"
],
"eslint.workingDirectories": [{ "mode": "auto" }],
// 已移除废弃的 eslint.autoFixOnSave,改用以下标准配置
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},

// ==================== 文件头注释 ====================
"fileheader.Author": "@Guojufeng",
"fileheader.LastModifiedBy": "@Guojufeng",

// ==================== Emmet 设置 ====================
"emmet.triggerExpansionOnTab": true,
"emmet.includeLanguages": {
"wxml": "html",
"javascript": "javascriptreact",
"vue-html": "html",
"vue": "html"
},

// ==================== Vue 相关设置(Volar兼容) ====================
"vue.server.hybridMode": false, // 解决 Linux 下 Volar 兼容性问题
"vue.complete.casing": ["camel", "pascal"], // 组件命名提示
"vetur.format.defaultFormatter.js": "vscode-typescript", // 保留 Vetur 配置(兼容 Vue 2)
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_attributes": "force-aligned"
},
"prettier": {
"semi": false,
"singleQuote": true
}
},

// ==================== 浏览器与预览 ====================
"view-in-browser.customBrowser": "chrome",
"open-in-browser.default": "chrome",
// Live Server 配置 - 已修复 root 路径问题(留空表示使用工作区根目录)
"liveServer.settings.root": "",
"liveServer.settings.ChromeDebuggingAttachment": false,

// ==================== 资源管理器 ====================
"explorer.confirmDragAndDrop": false,
"explorer.confirmDelete": false,
"explorer.compactFolders": false,

// ==================== 扩展配置 ====================
"files.associations": {
"*.cjson": "jsonc",
"*.wxss": "css",
"*.wxs": "javascript"
},
"minapp-vscode.disableAutoConfig": true,
"python.jediEnabled": false,
"breadcrumbs.enabled": true,
"beautify.language": {
"js": {
"type": ["javascript", "json"],
"filename": [".eslintrc", ".jsbeautifyrc"]
},
"css": ["css", "scss"],
"html": ["htm", "html", "vue"]
},

// ==================== 原有特定插件保留 ====================
"fittencode.languagePreference.displayPreference": "zh-cn",
"fittencode.languagePreference.commentPreference": "zh-cn",

// ==================== 其他 ====================
"security.workspace.trust.untrustedFiles": "open",
"extensions.ignoreRecommendations": false,
"extensions.autoUpdate": "onlyEnabledExtensions",
"update.mode": "none",

// ==================== 平台特定设置(跨平台适配)====================
// 这些设置会根据操作系统自动覆盖上面的全局设置 [citation:10]
"linux": {
// 统信UOS Linux 特定配置
"terminal.integrated.defaultProfile.linux": "bash",
"terminal.integrated.fontFamily": "'Noto Mono', 'Droid Sans Mono', monospace",
// 统信UOS内置浏览器路径(请根据实际安装确认)
"browser.chrome.path": "/usr/bin/deepin-browser",
// Linux 下文件监控限制优化提示(见下方使用说明)
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/**": true,
"**/dist/**": true
}
},
"windows": {
// Windows 特定配置(跨设备同步时生效)
"terminal.integrated.defaultProfile.windows": "PowerShell",
"terminal.integrated.fontFamily": "Consolas, 'Courier New', monospace",
"browser.chrome.path": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"
},
"osx": {
// macOS 特定配置
"terminal.integrated.defaultProfile.osx": "zsh",
"terminal.integrated.fontFamily": "Menlo, Monaco, 'Courier New', monospace",
"browser.chrome.path": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
}
}