更新 README.md;完善 QickPick keyword;移除插件标题上的 [Under development(正在开发中)]
This commit is contained in:
parent
461ab98385
commit
abe6b5f892
@ -28,7 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- Add shortcut key `Ctrl + Shift + T` to show vscode QickPick window (添加快捷键 Ctrl + Shift + T 来显示 vscode QickPick 弹窗)
|
- Add shortcut key `Shift + Alt + T` to show vscode QickPick window (添加快捷键 Shift + Alt + T 来显示 vscode QickPick 弹窗)
|
||||||
- Write `README.md` (完善 README 文档)
|
- Write `README.md` (完善 README 文档)
|
||||||
|
|
||||||
## 1.0.3
|
## 1.0.3
|
||||||
|
82
README.md
82
README.md
@ -1,22 +1,43 @@
|
|||||||
# Variable Conversion 命名方式转换插件
|
# 命名方式转换插件 Variable Conversion
|
||||||
|
|
||||||
A variable naming conversion extension. You can use it through the editer menu, shortcut keys and bottom bar. Support camel, pascal, snake, kebab(spinal), lower, upper case, and more.
|
一个强大的变量名转换插件,支持常用命名方式间一键转换,支持右键菜单、快捷键、底栏等多种方式使用。<br>
|
||||||
|
A powerful variable naming conversion extension. You can use it through the editer menu, shortcut keys and bottom bar.
|
||||||
|
|
||||||
变量名转换插件,支持右键菜单、快捷键、底栏等多种方式使用,支持小驼峰、大驼峰(帕斯卡)、下划线(蛇形)、连字符(脊柱式)、全小写、全大写等常用命名方式(及组合)转换。
|
## 如何使用? How to Use?
|
||||||
|
|
||||||
## Features 特点
|
1. 选中代码中需要转换的内容 <br>Select The Text To Convert
|
||||||
|
|
||||||
Describe specific features of your extension including screenshots of your extension in action. Image paths are relative to this README file.
|
![Step1. Select The Text To Convert](image/step1-select-the-text-to-convert.gif)
|
||||||
|
|
||||||
For example if there is an image subfolder under your extension project workspace:
|
> Tips:<br>
|
||||||
|
> 可以通过 `Ctrl + D` 快捷键选中光标所在的单词<br>
|
||||||
|
> You can press `Ctrl + D` to select the word near the cursor
|
||||||
|
|
||||||
\!\[feature X\]\(images/feature-x.png\)
|
2. 按 `Shift + Alt + T` <br>Press `Shift + Alt + T`
|
||||||
|
|
||||||
> Tip: Many popular extensions utilize animations. This is an excellent way to show off your extension! We recommend short, focused animations that are easy to follow.
|
![Step2. Press Shift + Alt + T](image/step2-press-shift-alt-t.gif)
|
||||||
|
|
||||||
## Requirements
|
或者右键 -> 将字符串转换为... <br>Or right-click on the selected text -> Convert string to...
|
||||||
|
|
||||||
If you have any requirements or dependencies, add a section describing those and how to install and configure them.
|
![Step2. Right-click on the selected text](image/step2-right-click-on-the-selected-text.gif)
|
||||||
|
|
||||||
|
选择转换目标,转换完成
|
||||||
|
|
||||||
|
## 反馈 Feedback
|
||||||
|
|
||||||
|
如果您觉得本插件还不够好用,有更好的使用建议;或者发现了 BUG,欢迎[前往 GitHub 仓库提 issue](https://github.com/coder-xiaomo/variable-conversion-vscode-extension/issues). 使用简体中文、繁體中文或 English 均可,不建议使用翻译软件翻译,否则可能会让文字描述变得抽象难懂。<br>
|
||||||
|
If you feel that this extension is not good to use, or you have a better use suggestion, or found a BUG, welcome to [create an issue on GitHub](https://github.com/coder-xiaomo/variable-conversion-vscode-extension/issues). English, 简体中文 or 繁體中文 are all supported, it is not recommended to use translation software, otherwise it may make the text description become abstract and difficult to understand.
|
||||||
|
|
||||||
|
## 开源共建 OpenSource & Contribute
|
||||||
|
|
||||||
|
本插件已开源(MIT License),欢迎提 Pr 共建,让插件变得更好用!<br>
|
||||||
|
This plug-in has been open source (MIT License), welcome to Pr co-construction, let the plug-in become better!
|
||||||
|
|
||||||
|
GitHub Repo (开源地址): https://github.com/coder-xiaomo/variable-conversion-vscode-extension.git
|
||||||
|
|
||||||
|
Gitee Mirror (码云镜像): https://gitee.com/coder-xiaomo/variable-conversion-vscode-extension.git
|
||||||
|
|
||||||
|
<!--
|
||||||
|
|
||||||
## Extension Settings
|
## Extension Settings
|
||||||
|
|
||||||
@ -29,45 +50,6 @@ This extension contributes the following settings:
|
|||||||
* `myExtension.enable`: Enable/disable this extension.
|
* `myExtension.enable`: Enable/disable this extension.
|
||||||
* `myExtension.thing`: Set to `blah` to do something.
|
* `myExtension.thing`: Set to `blah` to do something.
|
||||||
|
|
||||||
## Known Issues
|
-->
|
||||||
|
|
||||||
Calling out known issues can help limit users opening duplicate issues against your extension.
|
|
||||||
|
|
||||||
## Release Notes
|
|
||||||
|
|
||||||
Users appreciate release notes as you update your extension.
|
|
||||||
|
|
||||||
### 1.0.0
|
|
||||||
|
|
||||||
Initial release of ...
|
|
||||||
|
|
||||||
### 1.0.1
|
|
||||||
|
|
||||||
Fixed issue #.
|
|
||||||
|
|
||||||
### 1.1.0
|
|
||||||
|
|
||||||
Added features X, Y, and Z.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Following extension guidelines
|
|
||||||
|
|
||||||
Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.
|
|
||||||
|
|
||||||
* [Extension Guidelines](https://code.visualstudio.com/api/references/extension-guidelines)
|
|
||||||
|
|
||||||
## Working with Markdown
|
|
||||||
|
|
||||||
You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
|
|
||||||
|
|
||||||
* Split the editor (`Cmd+\` on macOS or `Ctrl+\` on Windows and Linux).
|
|
||||||
* Toggle preview (`Shift+Cmd+V` on macOS or `Shift+Ctrl+V` on Windows and Linux).
|
|
||||||
* Press `Ctrl+Space` (Windows, Linux, macOS) to see a list of Markdown snippets.
|
|
||||||
|
|
||||||
## For more information
|
|
||||||
|
|
||||||
* [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown)
|
|
||||||
* [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/)
|
|
||||||
|
|
||||||
**Enjoy!**
|
**Enjoy!**
|
||||||
|
BIN
image/step1-select-the-text-to-convert.gif
Normal file
BIN
image/step1-select-the-text-to-convert.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 36 KiB |
BIN
image/step2-press-shift-alt-t.gif
Normal file
BIN
image/step2-press-shift-alt-t.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 108 KiB |
BIN
image/step2-right-click-on-the-selected-text.gif
Normal file
BIN
image/step2-right-click-on-the-selected-text.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 101 KiB |
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
// 插件 id 及名称
|
// 插件 id 及名称
|
||||||
"name": "variable-conversion",
|
"name": "variable-conversion",
|
||||||
"displayName": "Variable Conversion [Under development(正在开发中)]",
|
"displayName": "Variable Conversion",
|
||||||
"description": "一个强大的变量名转换插件,支持右键菜单、快捷键、底栏等多种方式使用,支持小驼峰、大驼峰(帕斯卡)、下划线(蛇形)、连字符(脊柱式)、全小写、全大写等常用命名方式(及组合)转换。 \nA powerful variable naming conversion extension. You can use it through the editer menu, shortcut keys and bottom bar. Support camel, pascal, snake, kebab(spinal), lower, upper case, and more.",
|
"description": "一个强大的变量名转换插件,支持右键菜单、快捷键、底栏等多种方式使用,支持小驼峰、大驼峰(帕斯卡)、下划线(蛇形)、连字符(脊柱式)、全小写、全大写等常用命名方式(及组合)转换。 \nA powerful variable naming conversion extension. You can use it through the editer menu, shortcut keys and bottom bar. Support camel, pascal, snake, kebab(spinal), lower, upper case, and more.",
|
||||||
// 版本号
|
// 版本号
|
||||||
"version": "0.0.4",
|
"version": "0.0.4",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "variable-conversion",
|
"name": "variable-conversion",
|
||||||
"displayName": "Variable Conversion [Under development(正在开发中)]",
|
"displayName": "Variable Conversion",
|
||||||
"description": "一个强大的变量名转换插件,支持右键菜单、快捷键、底栏等多种方式使用,支持小驼峰、大驼峰(帕斯卡)、下划线(蛇形)、连字符(脊柱式)、全小写、全大写等常用命名方式(及组合)转换。 \nA powerful variable naming conversion extension. You can use it through the editer menu, shortcut keys and bottom bar. Support camel, pascal, snake, kebab(spinal), lower, upper case, and more.",
|
"description": "一个强大的变量名转换插件,支持右键菜单、快捷键、底栏等多种方式使用,支持小驼峰、大驼峰(帕斯卡)、下划线(蛇形)、连字符(脊柱式)、全小写、全大写等常用命名方式(及组合)转换。 \nA powerful variable naming conversion extension. You can use it through the editer menu, shortcut keys and bottom bar. Support camel, pascal, snake, kebab(spinal), lower, upper case, and more.",
|
||||||
"version": "0.0.4",
|
"version": "0.0.4",
|
||||||
"icon": "image/logo.png",
|
"icon": "image/logo.png",
|
||||||
|
@ -144,38 +144,44 @@ const keyword = {
|
|||||||
camel: [
|
camel: [
|
||||||
'小驼峰', '驼峰',
|
'小驼峰', '驼峰',
|
||||||
'Camel Case',
|
'Camel Case',
|
||||||
|
'cc',
|
||||||
'XiaoTuoFeng', 'TuoFeng',
|
'XiaoTuoFeng', 'TuoFeng',
|
||||||
'XTF', 'TF',
|
'xtf', 'tf',
|
||||||
],
|
],
|
||||||
pascal: [
|
pascal: [
|
||||||
'大驼峰', '帕斯卡',
|
'大驼峰', '帕斯卡',
|
||||||
'Pascal Case',
|
'Pascal Case',
|
||||||
|
'pc',
|
||||||
'DaTuoFeng', 'PaSiKa',
|
'DaTuoFeng', 'PaSiKa',
|
||||||
'DTF', 'PSK',
|
'dtf', 'psk',
|
||||||
],
|
],
|
||||||
snake: [
|
snake: [
|
||||||
'下划线', '蛇形', '_',
|
'下划线', '蛇形', '_',
|
||||||
'Snake Case', 'Underline Case',
|
'Snake Case', 'Underline Case',
|
||||||
|
'sc', 'uc',
|
||||||
'XiaHuaXian', 'SheXing',
|
'XiaHuaXian', 'SheXing',
|
||||||
'XHX', 'SX',
|
'xhx', 'sx',
|
||||||
],
|
],
|
||||||
kebab: [
|
kebab: [
|
||||||
'连字符', '脊柱式', '-',
|
'连字符', '脊柱式', '-',
|
||||||
'Kebab Case', 'Spinal Case',
|
'Kebab Case', 'Spinal Case',
|
||||||
|
'kc', 'sc',
|
||||||
'LianZiFu', 'JiZhuShi',
|
'LianZiFu', 'JiZhuShi',
|
||||||
'LZF', 'JZS',
|
'lzf', 'jzs',
|
||||||
],
|
],
|
||||||
upper: [
|
upper: [
|
||||||
'全大写', '大写',
|
'全大写', '大写',
|
||||||
'Upper Case',
|
'Upper Case',
|
||||||
|
'uc',
|
||||||
'QuanDaXie',
|
'QuanDaXie',
|
||||||
'QDX',
|
'qdx',
|
||||||
],
|
],
|
||||||
lower: [
|
lower: [
|
||||||
'全小写', '小写',
|
'全小写', '小写',
|
||||||
'Lower Case',
|
'Lower Case',
|
||||||
|
'lc',
|
||||||
'QuanXiaoXie',
|
'QuanXiaoXie',
|
||||||
'QXX',
|
'qxx',
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -187,73 +193,73 @@ export const qickPickSupportCases = [
|
|||||||
{
|
{
|
||||||
type: SupportCase.CAMEL_CASE,
|
type: SupportCase.CAMEL_CASE,
|
||||||
name: '小驼峰(驼峰)命名',
|
name: '小驼峰(驼峰)命名',
|
||||||
shortName:'小驼峰',
|
shortName: '小驼峰',
|
||||||
keyword: keyword.camel,
|
keyword: keyword.camel,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: SupportCase.PASCAL_CASE,
|
type: SupportCase.PASCAL_CASE,
|
||||||
name: '大驼峰(帕斯卡)命名',
|
name: '大驼峰(帕斯卡)命名',
|
||||||
shortName:'帕斯卡',
|
shortName: '帕斯卡',
|
||||||
keyword: keyword.pascal,
|
keyword: keyword.pascal,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: SupportCase.SNAKE_CASE,
|
type: SupportCase.SNAKE_CASE,
|
||||||
name: '下划线(蛇形)命名',
|
name: '下划线(蛇形)命名',
|
||||||
shortName:'蛇形',
|
shortName: '蛇形',
|
||||||
keyword: [...keyword.snake, ...keyword.lower],
|
keyword: [...keyword.snake, ...keyword.lower],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: SupportCase.SNAKE_CAMEL_CASE,
|
type: SupportCase.SNAKE_CAMEL_CASE,
|
||||||
name: '下划线(蛇形) + 小驼峰(驼峰)命名',
|
name: '下划线(蛇形) + 小驼峰(驼峰)命名',
|
||||||
shortName:'蛇形驼峰',
|
shortName: '蛇形驼峰',
|
||||||
keyword: [...keyword.snake, ...keyword.camel],
|
keyword: [...keyword.snake, ...keyword.camel],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: SupportCase.SNAKE_PASCAL_CASE,
|
type: SupportCase.SNAKE_PASCAL_CASE,
|
||||||
name: '下划线(蛇形) + 大驼峰(帕斯卡)命名',
|
name: '下划线(蛇形) + 大驼峰(帕斯卡)命名',
|
||||||
shortName:'蛇形帕斯卡',
|
shortName: '蛇形帕斯卡',
|
||||||
keyword: [...keyword.snake, ...keyword.pascal],
|
keyword: [...keyword.snake, ...keyword.pascal],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: SupportCase.SNAKE_UPPER_CASE,
|
type: SupportCase.SNAKE_UPPER_CASE,
|
||||||
name: '下划线(蛇形) + 全大写命名',
|
name: '下划线(蛇形) + 全大写命名',
|
||||||
shortName:'蛇形大写',
|
shortName: '蛇形大写',
|
||||||
keyword: [...keyword.snake, ...keyword.upper],
|
keyword: [...keyword.snake, ...keyword.upper],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: SupportCase.KEBAB_CASE,
|
type: SupportCase.KEBAB_CASE,
|
||||||
name: '连字符(脊柱式)命名',
|
name: '连字符(脊柱式)命名',
|
||||||
shortName:'脊柱',
|
shortName: '脊柱',
|
||||||
keyword: [...keyword.kebab, ...keyword.lower],
|
keyword: [...keyword.kebab, ...keyword.lower],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: SupportCase.KEBAB_CAMEL_CASE,
|
type: SupportCase.KEBAB_CAMEL_CASE,
|
||||||
name: '连字符(脊柱式) + 小驼峰(驼峰)命名',
|
name: '连字符(脊柱式) + 小驼峰(驼峰)命名',
|
||||||
shortName:'脊柱驼峰',
|
shortName: '脊柱驼峰',
|
||||||
keyword: [...keyword.kebab, ...keyword.camel],
|
keyword: [...keyword.kebab, ...keyword.camel],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: SupportCase.KEBAB_PASCAL_CASE,
|
type: SupportCase.KEBAB_PASCAL_CASE,
|
||||||
name: '连字符(脊柱式) + 大驼峰(帕斯卡)命名',
|
name: '连字符(脊柱式) + 大驼峰(帕斯卡)命名',
|
||||||
shortName:'脊柱帕斯卡',
|
shortName: '脊柱帕斯卡',
|
||||||
keyword: [...keyword.snake, ...keyword.pascal],
|
keyword: [...keyword.snake, ...keyword.pascal],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: SupportCase.KEBAB_UPPER_CASE,
|
type: SupportCase.KEBAB_UPPER_CASE,
|
||||||
name: '连字符(脊柱式) + 全大写命名',
|
name: '连字符(脊柱式) + 全大写命名',
|
||||||
shortName:'脊柱大写',
|
shortName: '脊柱大写',
|
||||||
keyword: [...keyword.snake, ...keyword.upper],
|
keyword: [...keyword.snake, ...keyword.upper],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: SupportCase.LOWER_CASE,
|
type: SupportCase.LOWER_CASE,
|
||||||
name: '全小写',
|
name: '全小写',
|
||||||
shortName:'小写',
|
shortName: '小写',
|
||||||
keyword: keyword.lower,
|
keyword: keyword.lower,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: SupportCase.UPPER_CASE,
|
type: SupportCase.UPPER_CASE,
|
||||||
name: '全大写',
|
name: '全大写',
|
||||||
shortName:'大写',
|
shortName: '大写',
|
||||||
keyword: keyword.upper,
|
keyword: keyword.upper,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user