Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Variable FormatterNew to Visual Studio Code? Get it now.
Variable Formatter

Variable Formatter

leeou

|
190 installs
| (1) | Free
A variable name format conversion program
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

中文 | English

VariableFormatter

一个变量名称格式化的 VS Code 扩展插件。

功能特性

  • 变量名称格式化,支持大驼峰、小驼峰、常量命名、中划线连接、自定义字符连接等。
  • 支持一键格式化多个选中单词。
  • 支持右键菜单和灯泡提示(Code Actions)两种方式选择转换格式。
  • 支持快捷键操作。
  • 支持右键文件复制文件名(文件或文件夹)。

使用方式

可视化操作

选中要转换的单词,右键点击,在 Variable Formatter 子菜单中选择要转换的格式。

VariableFormatter

默认快捷键

请根据个人习惯配置快捷键。

快捷键 说明
Ctrl+Alt+F 默认快捷键。
支持在扩展设置中自定义可选格式。

ExpansionSettings

安装

  1. 按 F1 并选择 Extensions: Install Extensions。
  2. 搜索并选择 Variable Formatter。

详见 扩展安装指南。

更新日志

查看各版本的 更新日志。

许可证

本项目基于 MIT 许可发布。

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft