Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>name transformNew to Visual Studio Code? Get it now.
name transform

name transform

hanjiangxueying

|
35 installs
| (1) | Free
Visual Studio Code Name Transform Extension
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Name Transform Extension for Visual Studio Code

A wrapper around node-change-case for Visual Studio Code. Quickly change the case of the current selection or current word.

If only one word is selected, the name-transform.snake command gives you a preview of each option: alt text

Shortcut keys

win
ctrl+shift+1 常量名
ctrl+shift+2 大驼峰写法 (帕斯卡命名法)
ctrl+shift+3 全大写
ctrl+shift+4 字符串倒序
ctrl+shift+5 连字符写法 (中划线命名法)
ctrl+shift+6 蛇形写法 (下划线命名法)
ctrl+shift+7 小驼峰写法 (驼峰命名法)
ctrl+shift+8 全小写
mac
ctrl+cmd+1 常量名
ctrl+cmd+2 大驼峰写法 (帕斯卡命名法)
ctrl+cmd+3 全大写
ctrl+cmd+4 字符串倒序
ctrl+cmd+5 连字符写法 (中划线命名法)
ctrl+cmd+6 蛇形写法 (下划线命名法)
ctrl+cmd+7 小驼峰写法 (驼峰命名法)
ctrl+cmd+8 全小写

Right click menu

alt text

Install

Launch VS Code Quick Open (Ctrl/Cmd+P), paste the following command, and press enter.

ext install name-transform

Commands

  • name-transform.camelCase: Change Case 'camelCase': Convert to a string with the separators denoted by having the next letter capitalised
  • name-transform.constant: Change Case 'constant': Convert to an upper case, underscore separated string
  • name-transform.kebab: Change Case 'kebab': Convert to a lower case, dash separated string (alias for param case)
  • name-transform.upperCamelCase: Change Case 'upperCamelCase': Convert to a string denoted in the same fashion as camelCase, but with the first letter also capitalised
  • name-transform.lowercase: Change Case 'lowercase': Convert to a string in lower case
  • name-transform.snake: Change Case 'snake': Convert to a lower case, underscore separated string
  • name-transform.uppercase: Change Case 'uppercase': Convert to a string in upper case
  • name-transform.reverse: Change Case 'reverse': Convert to a string reverse order

Support

Create an issue

Enjoy!

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