Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>MultiCase Search TransformerNew to Visual Studio Code? Get it now.
MultiCase Search Transformer

MultiCase Search Transformer

CHENJIAMIAN

|
3 installs
| (0) | Free
自动将搜索词转为驼峰与短横线形式联合正则,提升搜索效率。Automatically convert search terms into a combined regular expression of camelCase and kebab - case for efficient searching.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

MultiCase Search Transformer

多Case搜索转换器 - 自动将搜索词转为驼峰与短横线形式联合正则,提升搜索效率。

Automatically convert search terms into a combined regular expression of camelCase and kebab-case for efficient searching.

功能特性 / Features

  • 自动将搜索词转换为驼峰式和短横线式联合搜索
  • 支持光标处单词自动识别
  • 优化正则表达式匹配,避免部分匹配
  • 支持Vue组件名、React组件名等常见场景

使用示例 / Examples

Vue组件搜索

假设你在搜索一个Vue组件 MyComponent,插件会自动生成以下搜索模式: MyComponent|my-component

React组件搜索

假设你在搜索一个React组件 UserProfile,插件会自动生成以下搜索模式: UserProfile|user-profile

通用变量搜索

假设你在搜索一个变量 pageSize,插件会自动生成以下搜索模式: pageSize|page-size

使用方法 / Usage

  1. 将光标放在要搜索的单词上
  2. 按 Ctrl+Shift+P 打开命令面板
  3. 输入并选择「transformMulticaseSearch」
  4. 插件会自动使用光标处的单词进行多格式搜索

扩展设置 / Extension Settings

本插件暂未提供额外设置项。

已知问题 / Known Issues

  • 如果光标不在有效单词上,会显示警告提示
  • 不支持自定义单词边界检测规则

更新日志 / Release Notes

0.0.1

  • 初始版本发布
  • 支持基本的多Case搜索转换功能

更多信息 / For More Information

  • VS Code API
  • Extension Guidelines

Enjoy!

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