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

更新 README.md;完善 QickPick keyword;移除插件标题上的 [Under development(正在开发中)]

This commit is contained in:
程序员小墨 2024-04-07 02:40:12 +08:00
parent 461ab98385
commit abe6b5f892
8 changed files with 59 additions and 71 deletions

View File

@ -28,7 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### 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 文档)
## 1.0.3

View File

@ -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
@ -29,45 +50,6 @@ This extension contributes the following settings:
* `myExtension.enable`: Enable/disable this extension.
* `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!**

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

View File

@ -1,7 +1,7 @@
{
// 插件 id 及名称
"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.",
// 版本号
"version": "0.0.4",

View File

@ -1,6 +1,6 @@
{
"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.",
"version": "0.0.4",
"icon": "image/logo.png",

View File

@ -144,38 +144,44 @@ const keyword = {
camel: [
'小驼峰', '驼峰',
'Camel Case',
'cc',
'XiaoTuoFeng', 'TuoFeng',
'XTF', 'TF',
'xtf', 'tf',
],
pascal: [
'大驼峰', '帕斯卡',
'Pascal Case',
'pc',
'DaTuoFeng', 'PaSiKa',
'DTF', 'PSK',
'dtf', 'psk',
],
snake: [
'下划线', '蛇形', '_',
'Snake Case', 'Underline Case',
'sc', 'uc',
'XiaHuaXian', 'SheXing',
'XHX', 'SX',
'xhx', 'sx',
],
kebab: [
'连字符', '脊柱式', '-',
'Kebab Case', 'Spinal Case',
'kc', 'sc',
'LianZiFu', 'JiZhuShi',
'LZF', 'JZS',
'lzf', 'jzs',
],
upper: [
'全大写', '大写',
'Upper Case',
'uc',
'QuanDaXie',
'QDX',
'qdx',
],
lower: [
'全小写', '小写',
'Lower Case',
'lc',
'QuanXiaoXie',
'QXX',
'qxx',
],
};