From 7723dddcbd28c0eb2a5338804a049dd966dd8ac3 Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Wed, 23 Jul 2025 08:32:55 +0800 Subject: [PATCH] Add cross-editor sharing instructions and new settings Updated both English and Chinese README files to document compatibility with Code-OSS-based editors and provide symbolic link instructions for sharing settings across editors. Added new settings for AI toolcall command deny list, autoRun confirm mode, and enabled features for Kiro and Trae in settings.json. --- README.md | 39 ++++++++++++++++++++++++++++++++++++++- README.zh.md | 39 ++++++++++++++++++++++++++++++++++++++- settings.json | 5 +++++ 3 files changed, 81 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 22bc2ff..1409848 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,21 @@ ***[汉语](README.zh.md)*** -Personal Visual Studio Code configuration file with customized preferences for formatting, editor behavior, and development workflows. +Personal Visual Studio Code configuration file with customized preferences for formatting, editor behavior, and development workflows. This configuration is compatible with all [Code-OSS](https://github.com/microsoft/vscode)-based editors (VS Code, Trae, Kiro, etc.) and can be shared across multiple editors using symbolic links. ## 🔎 Overview This repository contains a carefully crafted Visual Studio Code settings configuration designed to enhance productivity and provide a consistent development experience across different programming languages and frameworks. +**Cross-Editor Compatibility**: The `settings.json` file is fully compatible with all Code-OSS-based editors including: + +- Visual Studio Code +- Trae +- Kiro +- Other VSCode-compatible editors + +**Shared Configuration**: You can use symbolic links to share the same configuration across multiple Code-OSS-based editors, ensuring consistent settings and workflows across your development environment. + ## ✨ Features - **Multi-language formatting support** - Configured formatters for various file types @@ -71,6 +80,34 @@ curl -o settings.json https://raw.githubusercontent.com/xixu-me/VSCode-Settings/ 2. Open VS Code Settings (JSON): `Ctrl/Cmd + ,` → "Open Settings (JSON)" icon 3. Replace content with the downloaded configuration +### Method 3: Symbolic Links (Cross-Editor Sharing) + +To share the same configuration across multiple Code-OSS-based editors: + +**Linux:** + +```bash +# Example: Link Trae and Kiro to use the same settings as VS Code +ln -s "~/.config/Code/User/settings.json" "~/.config/Trae/User/settings.json" +ln -s "~/.config/Code/User/settings.json" "~/.config/Kiro/User/settings.json" +``` + +**macOS:** + +```bash +# Example: Link Trae and Kiro to use the same settings as VS Code +ln -s "~/Library/Application Support/Code/User/settings.json" "~/Library/Application Support/Trae/User/settings.json" +ln -s "~/Library/Application Support/Code/User/settings.json" "~/Library/Application Support/Kiro/User/settings.json" +``` + +**Windows (PowerShell):** + +```powershell +# Example: Link Trae and Kiro to use the same settings as VS Code +New-Item -ItemType SymbolicLink -Path "$env:APPDATA\Trae\User\settings.json" -Target "$env:APPDATA\Code\User\settings.json" +New-Item -ItemType SymbolicLink -Path "$env:APPDATA\Kiro\User\settings.json" -Target "$env:APPDATA\Code\User\settings.json" +``` + ## 🎨 Customization Feel free to modify the configuration according to your needs: diff --git a/README.zh.md b/README.zh.md index c4fb441..6d6d8bd 100644 --- a/README.zh.md +++ b/README.zh.md @@ -2,12 +2,21 @@ ***[English](README.md)*** -个人 Visual Studio Code 配置文件,包含用于格式化、编辑器行为和开发工作流的自定义首选项。 +个人 Visual Studio Code 配置文件,包含用于格式化、编辑器行为和开发工作流的自定义首选项。此配置兼容所有基于 [Code-OSS](https://github.com/microsoft/vscode) 的编辑器(VS Code、Trae、Kiro 等),并可通过符号链接在多个编辑器间共享。 ## 🔎 概述 本仓库包含精心制作的 Visual Studio Code 设置配置,旨在提高生产力并为不同编程语言和框架提供一致的开发体验。 +**跨编辑器兼容性**:`settings.json` 文件完全兼容所有基于 Code-OSS 的编辑器,包括: + +- Visual Studio Code +- Trae +- Kiro +- 其他 VSCode 兼容编辑器 + +**共享配置**:您可以使用符号链接在多个基于 Code-OSS 的编辑器间共享相同配置,确保开发环境中设置和工作流的一致性。 + ## ✨ 功能特性 - **多语言格式化支持** - 为各种文件类型配置格式化程序 @@ -72,6 +81,34 @@ curl -o settings.json https://raw.githubusercontent.com/xixu-me/VSCode-Settings/ 3. 用下载的配置替换内容 4. 保存文件 +### 方法三:符号链接(跨编辑器共享) + +在多个基于 Code-OSS 的编辑器间共享相同配置: + +**Linux:** + +```bash +# 示例:让 Trae 和 Kiro 使用与 VS Code 相同的设置 +ln -s "~/.config/Code/User/settings.json" "~/.config/Trae/User/settings.json" +ln -s "~/.config/Code/User/settings.json" "~/.config/Kiro/User/settings.json" +``` + +**macOS:** + +```bash +# 示例:让 Trae 和 Kiro 使用与 VS Code 相同的设置 +ln -s "~/Library/Application Support/Code/User/settings.json" "~/Library/Application Support/Trae/User/settings.json" +ln -s "~/Library/Application Support/Code/User/settings.json" "~/Library/Application Support/Kiro/User/settings.json" +``` + +**Windows (PowerShell):** + +```powershell +# 示例:让 Trae 和 Kiro 使用与 VS Code 相同的设置 +New-Item -ItemType SymbolicLink -Path "$env:APPDATA\Trae\User\settings.json" -Target "$env:APPDATA\Code\User\settings.json" +New-Item -ItemType SymbolicLink -Path "$env:APPDATA\Kiro\User\settings.json" -Target "$env:APPDATA\Code\User\settings.json" +``` + ## 🎨 自定义设置 欢迎根据您的需求修改配置: diff --git a/settings.json b/settings.json index bbc0eb6..e3b4d2c 100644 --- a/settings.json +++ b/settings.json @@ -38,6 +38,8 @@ "[yaml]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, + "AI.toolcall.autoRun.command.denyList": "[\"rm\",\"rmdir\",\"del\",\"kill\",\"curl\",\"wget\",\"eval\",\"chmod\",\"chown\",\"Remove-Item\"]", + "AI.toolcall.confirmMode": "autoRun", // "accessibility.voice.speechLanguage": "zh-CN", "amazonQ.telemetry": false, // "C_Cpp.intelliSenseEngine": "disabled", @@ -101,6 +103,7 @@ "gitlens.telemetry.enabled": false, // "http.proxySupport": "on", "jupyter.askForKernelRestart": false, + "kiroAgent.enableTabAutocomplete": true, "markdown-preview-enhanced.codeBlockTheme": "github-dark.css", "markdown-preview-enhanced.enableCriticMarkupSyntax": true, "markdown-preview-enhanced.enableExtendedTableSyntax": true, @@ -179,6 +182,8 @@ "terminal.integrated.sendKeybindingsToShell": false, "terminal.integrated.smoothScrolling": true, "terminal.integrated.suggest.enabled": true, + "trae.tab.enableAutoImport": true, + "trae.tab.enableAutoRename": true, "workbench.colorTheme": "Default Dark Modern", "workbench.iconTheme": "material-icon-theme", "workbench.list.smoothScrolling": true