Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>text conversionNew to Visual Studio Code? Get it now.
text conversion

text conversion

yangSir

|
6 installs
| (0) | Free
快速转换编辑器中选择文本的格式,支持驼峰式、蛇形命名、标题格式、全小写和全大写等多种格式转换
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

EN CN

Text Conversion 文本格式转换器

这款 Visual Studio Code 扩展可以快速转换编辑器中选择文本的格式,支持驼峰式、蛇形命名、标题格式、全小写和全大写等多种格式转换。

功能特性

  • 将选中文本转为驼峰式命名(camelCase)
  • 将选中文本转为蛇形命名(snake_case)
  • 将选中文本转为标题格式(Title Case)
  • 将选中文本转为全小写
  • 将选中文本转为全大写

环境要求

需要 Visual Studio Code 1.60.0 或更高版本

安装指南

  1. 打开 Visual Studio Code
  2. 进入扩展视图 (Ctrl+Shift+X 或 Cmd+Shift+X)
  3. 搜索 "text conversion"
  4. 点击 安装 按钮
  5. 安装完成后点击 重新加载 激活扩展

使用说明

基础用法

  1. 在编辑器中选中需要转换的文本
  2. 右键点击选中文本打开上下文菜单
  3. 在 文本转换 子菜单中选择目标格式
  4. 所选文本将立即转换为指定格式

快捷操作

  • 使用 Ctrl+Shift+P 或 Cmd+Shift+P 打开命令面板
  • 输入 "转换文本格式" 过滤命令
  • 选择需要执行的转换命令

支持命令

  • text-conversion.camelCase: 转换为驼峰式命名
  • text-conversion.snakeCase: 转换为蛇形命名
  • text-conversion.titleCase: 转换为标题格式
  • text-conversion.lowerCase: 转换为全小写
  • text-conversion.upperCase: 转换为全大写

许可协议

本扩展遵循 MIT 许可证

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft