2024-11-28
Updated:
摘要(由llm生成)
VSCode加速设置可以提高你的开发效率,尤其是对于低端显卡或者集成显卡的机器。打开 VSCode命令面板,输入 "Preferences: Configure Runtime Arguments",然后添加“disable-hardware-acceleration”:true,实验发现它确实有助于提高工作效率。但是,如果你的 SonarLint 占用内存过高,就会导致卡顿问题。此外,你还遇到了 vite-plugin-checker 的错误,解决方法是安装或重新安装 uv。
打开这个禁止硬件加速的选项可以让 VSCode 快很多倍,Cusror 这种基于 VSCode 的也可以,不知道什么原理,应该是针对低端显卡或者集成显卡的机器比较有效?但是我试了一下确实感觉快了一些,我是 M3 的 macbook,大家可以试试看效果怎样?
步骤:1. 打开命令面板 (Cmnd + Shift + P)2. 输入 "Preferences: Configure Runtime Arguments"3. 添加: "disable-hardware-acceleration": true
SonarLint 内存占用高,卡顿
error when starting dev server:ReferenceError: module is not defined in ES module scopeThis file is being treated as an ES module because it has a '.js' file extension and 'C:\Users\turbo\Developer\xxx.worktrees\fix\cannot-export\node_modules\.pnpm\[email protected][email protected][email protected][email protected][email protected]_@types+n_f2jvehahdn5lgzw77tv2nbqmma\node_modules\vite-plugin-checker\package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
Ensure the project either has “type”: “module” set or that the Vite config is renamed to vite.config.mjs / vite.config.mts depending on whether TypeScript is used
确保项目已设置 “type”: “module” 或根据是否使用 TypeScript 将 Vite 配置重命名为 vite.config.mjs / vite.config.mts
Claude MCP can’t connect to SQLite MCP serve

解决方法:install or reinstall uv
brew install uv
ollma 真好玩
我怎么这么久了才开始玩(谢谢酱紫表的安利)

感谢阅读到这里,期待收到更多的反馈
欢迎关注公众号
kazoottt
