1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

支持通过VSCode设置页配置哪些格式是禁用的 (#2)

* 添加 VSCode 配置项 (逻辑待实现)

* QuickPick 菜单支持过滤用户配置的禁用格式 (disableFormat)

* 右键菜单支持过滤用户配置的禁用格式 (disableFormat)

* 快捷键循环转换支持过滤用户配置的禁用格式 (disableFormat)

* 为了发版暂时隐藏未开发完成的 variable-conversion.circularConversionFormatOrder 配置项

* 配置项描述调整:中文在前英文在后

* 更新 README.md 自述文档
This commit is contained in:
程序员小墨
2024-07-29 23:39:18 +08:00
committed by GitHub
parent 2f3dc60ca2
commit 9021df5ea8
8 changed files with 500 additions and 62 deletions

View File

@@ -20,7 +20,7 @@ Select what you want to convert in the editor, and then press `Ctrl + Alt + [` o
![](image/cyclic-conversion.gif)
### 基础转换
### 基础转换 Basic conversion
**1. 选中代码中需要转换的内容** **Select The Text To Convert**
@@ -47,7 +47,7 @@ Or right-click on the selected text -> Convert string to...
**3. 选择转换目标,转换完成** **Select the conversion target and complete**
## 快捷键
## 快捷键 Shortcut key
| 功能 Feature | 快捷键 shortcut key |
| ------------------------------------------------ | ------------------- |
@@ -55,6 +55,12 @@ Or right-click on the selected text -> Convert string to...
| 循环转换→上一个 Cyclic conversion → Previous one | Ctrl + Alt + [ |
| 循环转换→下一个 Cyclic conversion → Next one | Ctrl + Alt + ] |
## 配置项 configurations
| 配置项 Configuration Key | 描述 Description | 配置示例 | 默认值 |
| ----------------------------------- | ------------------------------------------------------------ | ------------------------------ | ------ |
| `variable-conversion.disableFormat` | 定义哪些格式是禁用的<br />Define which formats are disabled. | `["lower_case", "upper_case"]` | `[]` |
## 支持的类型 Support Case
| 类型 | Case | 举例 e.g. |
@@ -82,7 +88,7 @@ Or right-click on the selected text -> Convert string to...
## 小提示 Tips
#### 关于文本选区...
#### 关于文本选区... About text selections...
- 可以先按住 `Alt` 键不放,再鼠标先后选中多个选区
You can first hold down `Alt`, and then use the mouse to select multiple selection
@@ -107,4 +113,6 @@ Gitee Mirror (码云镜像): https://gitee.com/coder-xiaomo/variable-conversion-
-----
**玩得开心!**
**Enjoy!**