URL Encode/Decode | URL编码/解码 - Convert text to/from URL-encoded format
Base64 Encode/Decode | Base64编码/解码 - Convert text to/from Base64 format
Text Tools | 文本工具
String Statistics | 字符串统计 - Count characters, words, lines, etc.
JSON Format/Minify | JSON格式化/压缩 - Format or compress JSON text
Text Alignment | 文本对齐 - Align text left, center, or right with custom width
Copy JSON Structure | 复制JSON结构 - Copy the structure of a JSON object, replacing all values with their type placeholders
JSON Processing | JSON处理
Format JSON | JSON格式化 - Format JSON text with proper indentation
Minify JSON | JSON压缩 - Remove all whitespace from JSON text
Capitalize JSON Values | JSON值首字母大写 - Convert the first letter of all string values to uppercase
Uncapitalize JSON Values | JSON值首字母小写 - Convert the first letter of all string values to lowercase
Copy JSON Structure | 复制JSON结构 - Copy the structure of a JSON object, replacing all values with their type placeholders (empty string for strings, 0 for numbers, false for booleans)
How to Use | 使用方法
Select text in editor | 在编辑器中选择要转换的文本
Right-click and select "String Assistant" | 右键点击选中文本,在上下文菜单中选择"字符串助手"
Choose desired transformation | 选择需要的转换功能
Or use command palette (Ctrl+Shift+P) | 或使用命令面板(Ctrl+Shift+P)输入相应命令
Or use keyboard shortcuts | 或使用键盘快捷键
Keyboard Shortcuts | 键盘快捷键
You can customize keyboard shortcuts for all features in VSCode Keyboard Shortcuts settings:
可以在 VSCode 键盘快捷方式设置中自定义所有功能的快捷键:
Open Command Palette (Ctrl+Shift+P) | 打开命令面板
Type "Preferences: Open Keyboard Shortcuts" | 输入 "首选项:打开键盘快捷方式"
Search for "String Assistant" | 搜索 "字符串助手"
Click the "+" icon to add a shortcut | 点击 "+" 图标添加快捷键
Default shortcuts can be customized for: | 可以自定义的默认快捷键包括:
Text Case | 文本大小写
Convert to uppercase | 转换为大写 (Ctrl+K Ctrl+U)
Convert to lowercase | 转换为小写 (Ctrl+K Ctrl+L)
Capitalize first letter | 首字母大写 (Ctrl+K Ctrl+H)
Uncapitalize first letter | 首字母小写 (Ctrl+K Ctrl+J)
Capitalize all words | 所有单词首字母大写 (Ctrl+K Ctrl+I)
Uncapitalize all words | 所有单词首字母小写 (Ctrl+K Ctrl+K)
Naming Style | 命名风格
Convert to camelCase | 转换为小驼峰 (Ctrl+K Ctrl+,)
Convert to PascalCase | 转换为大驼峰 (Ctrl+K Ctrl+.)
Convert to snake_case | 转换为下划线 (Ctrl+K Ctrl+/)
Convert to kebab-case | 转换为中划线 (Ctrl+K Ctrl+;)
Note: All shortcuts only work when text is selected
注意:所有快捷键仅在选中文本时生效
Configuration | 配置选项
You can customize the following options in VSCode settings:
可以在 VSCode 设置中自定义以下选项:
JSON Processing Settings | JSON处理设置
Process content only in JSON files | JSON文件中是否只处理内容:
When enabled, only values will be transformed in JSON files | 启用后,在处理JSON文件时只会转换值,不会转换属性名
When disabled, both keys and values will be transformed | 禁用时会同时转换属性名和值
Context Menu Display | 右键菜单显示
Control which feature categories to show in context menu | 控制右键菜单中显示哪些功能类别:
Case conversion features | 大小写转换功能
Punctuation conversion features | 标点符号转换功能
Line processing features | 行处理功能
Space processing features | 空格处理功能
Naming conversion features | 命名转换功能
Other features | 其他功能
Line Merging Settings | 合并行设置
Customize separator for line merging | 自定义合并行时的分隔符
Choose quote type for line merging (single/double/none) | 选择合并行时使用的引号类型(单引号/双引号/无引号)