名称变更:连字符(脊柱式) -> 中划线(连字符/脊柱式)
This commit is contained in:
		@@ -46,10 +46,10 @@ Or right-click on the selected text -> Convert string to...
 | 
				
			|||||||
| 下划线(蛇形) + 小驼峰(驼峰)命名     | Snake Camel Case         | foo_Bar          |
 | 
					| 下划线(蛇形) + 小驼峰(驼峰)命名     | Snake Camel Case         | foo_Bar          |
 | 
				
			||||||
| 下划线(蛇形) + 大驼峰(帕斯卡)命名   | Snake Pascal Case        | Foo_Bar          |
 | 
					| 下划线(蛇形) + 大驼峰(帕斯卡)命名   | Snake Pascal Case        | Foo_Bar          |
 | 
				
			||||||
| 下划线(蛇形) + 全大写命名           | Snake Upper Case         | FOO_BAR          |
 | 
					| 下划线(蛇形) + 全大写命名           | Snake Upper Case         | FOO_BAR          |
 | 
				
			||||||
| 连字符(脊柱式)命名                  | Kebab Case / Spinal Case | foo-bar          |
 | 
					| 中划线(连字符/脊柱式)命名                  | Kebab Case / Spinal Case | foo-bar          |
 | 
				
			||||||
| 连字符(脊柱式) + 小驼峰(驼峰)命名   | Kebab Camel Case         | foo-Bar          |
 | 
					| 中划线(连字符/脊柱式) + 小驼峰(驼峰)命名   | Kebab Camel Case         | foo-Bar          |
 | 
				
			||||||
| 连字符(脊柱式) + 大驼峰(帕斯卡)命名 | Kebab Pascal Case        | Foo-Bar          |
 | 
					| 中划线(连字符/脊柱式) + 大驼峰(帕斯卡)命名 | Kebab Pascal Case        | Foo-Bar          |
 | 
				
			||||||
| 连字符(脊柱式) + 全大写命名         | Kebab Upper Case         | FOO-BAR          |
 | 
					| 中划线(连字符/脊柱式) + 全大写命名         | Kebab Upper Case         | FOO-BAR          |
 | 
				
			||||||
| 空格分隔命名                        | Space Case               | foo bar          |
 | 
					| 空格分隔命名                        | Space Case               | foo bar          |
 | 
				
			||||||
| 空格分隔 + 小驼峰(驼峰)命名         | Space Camel Case         | foo Bar          |
 | 
					| 空格分隔 + 小驼峰(驼峰)命名         | Space Camel Case         | foo Bar          |
 | 
				
			||||||
| 空格分隔 + 大驼峰(帕斯卡)命名       | Space Pascal Case        | Foo Bar          |
 | 
					| 空格分隔 + 大驼峰(帕斯卡)命名       | Space Pascal Case        | Foo Bar          |
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@
 | 
				
			|||||||
  // 插件 id 及名称
 | 
					  // 插件 id 及名称
 | 
				
			||||||
  "name": "variable-conversion",
 | 
					  "name": "variable-conversion",
 | 
				
			||||||
  "displayName": "Variable Conversion",
 | 
					  "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), space, 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), space, lower, upper case, and more.",
 | 
				
			||||||
  // 版本号
 | 
					  // 版本号
 | 
				
			||||||
  "version": "1.0.7",
 | 
					  "version": "1.0.7",
 | 
				
			||||||
  // logo
 | 
					  // logo
 | 
				
			||||||
@@ -77,19 +77,19 @@
 | 
				
			|||||||
      // group-3-kebab
 | 
					      // group-3-kebab
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
        "command": "variable-conversion.toKebabCase",
 | 
					        "command": "variable-conversion.toKebabCase",
 | 
				
			||||||
        "title": "连字符(脊柱式)命名 (Kebab/Spinal Case) [ foo-bar ]"
 | 
					        "title": "中划线(连字符/脊柱式)命名 (Kebab/Spinal Case) [ foo-bar ]"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
        "command": "variable-conversion.toKebabUpperCase",
 | 
					        "command": "variable-conversion.toKebabUpperCase",
 | 
				
			||||||
        "title": "连字符(脊柱式) + 全大写命名 (Kebab Upper Case) [ FOO-BAR ]"
 | 
					        "title": "中划线(连字符/脊柱式) + 全大写命名 (Kebab Upper Case) [ FOO-BAR ]"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
        "command": "variable-conversion.toKebabPascalCase",
 | 
					        "command": "variable-conversion.toKebabPascalCase",
 | 
				
			||||||
        "title": "连字符(脊柱式) + 大驼峰(帕斯卡)命名 (Kebab Pascal Case) [ Foo-Bar ]"
 | 
					        "title": "中划线(连字符/脊柱式) + 大驼峰(帕斯卡)命名 (Kebab Pascal Case) [ Foo-Bar ]"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
        "command": "variable-conversion.toKebabCamelCase",
 | 
					        "command": "variable-conversion.toKebabCamelCase",
 | 
				
			||||||
        "title": "连字符(脊柱式) + 小驼峰(驼峰)命名 (Kebab Camel Case) [ foo-Bar ]"
 | 
					        "title": "中划线(连字符/脊柱式) + 小驼峰(驼峰)命名 (Kebab Camel Case) [ foo-Bar ]"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      // group-4-space
 | 
					      // group-4-space
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										10
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								package.json
									
									
									
									
									
								
							@@ -1,7 +1,7 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "variable-conversion",
 | 
					  "name": "variable-conversion",
 | 
				
			||||||
  "displayName": "Variable Conversion",
 | 
					  "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), space, 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), space, lower, upper case, and more.",
 | 
				
			||||||
  "version": "1.0.7",
 | 
					  "version": "1.0.7",
 | 
				
			||||||
  "icon": "image/logo.png",
 | 
					  "icon": "image/logo.png",
 | 
				
			||||||
  "publisher": "coder-xiaomo",
 | 
					  "publisher": "coder-xiaomo",
 | 
				
			||||||
@@ -62,19 +62,19 @@
 | 
				
			|||||||
      },
 | 
					      },
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
        "command": "variable-conversion.toKebabCase",
 | 
					        "command": "variable-conversion.toKebabCase",
 | 
				
			||||||
        "title": "连字符(脊柱式)命名 (Kebab/Spinal Case) [ foo-bar ]"
 | 
					        "title": "中划线(连字符/脊柱式)命名 (Kebab/Spinal Case) [ foo-bar ]"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
        "command": "variable-conversion.toKebabUpperCase",
 | 
					        "command": "variable-conversion.toKebabUpperCase",
 | 
				
			||||||
        "title": "连字符(脊柱式) + 全大写命名 (Kebab Upper Case) [ FOO-BAR ]"
 | 
					        "title": "中划线(连字符/脊柱式) + 全大写命名 (Kebab Upper Case) [ FOO-BAR ]"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
        "command": "variable-conversion.toKebabPascalCase",
 | 
					        "command": "variable-conversion.toKebabPascalCase",
 | 
				
			||||||
        "title": "连字符(脊柱式) + 大驼峰(帕斯卡)命名 (Kebab Pascal Case) [ Foo-Bar ]"
 | 
					        "title": "中划线(连字符/脊柱式) + 大驼峰(帕斯卡)命名 (Kebab Pascal Case) [ Foo-Bar ]"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
        "command": "variable-conversion.toKebabCamelCase",
 | 
					        "command": "variable-conversion.toKebabCamelCase",
 | 
				
			||||||
        "title": "连字符(脊柱式) + 小驼峰(驼峰)命名 (Kebab Camel Case) [ foo-Bar ]"
 | 
					        "title": "中划线(连字符/脊柱式) + 小驼峰(驼峰)命名 (Kebab Camel Case) [ foo-Bar ]"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
        "command": "variable-conversion.toSpaceCase",
 | 
					        "command": "variable-conversion.toSpaceCase",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -26,10 +26,10 @@ export function caseConversion(targetCase: SupportCase, str: string, eol: EOL, c
 | 
				
			|||||||
        case SupportCase.SNAKE_UPPER_CASE:  // 下划线(蛇形) + 全大写命名
 | 
					        case SupportCase.SNAKE_UPPER_CASE:  // 下划线(蛇形) + 全大写命名
 | 
				
			||||||
            spaceCharacter = '_';
 | 
					            spaceCharacter = '_';
 | 
				
			||||||
            break;
 | 
					            break;
 | 
				
			||||||
        case SupportCase.KEBAB_CASE:        // 连字符(脊柱式)命名
 | 
					        case SupportCase.KEBAB_CASE:        // 中划线(连字符/脊柱式)命名
 | 
				
			||||||
        case SupportCase.KEBAB_CAMEL_CASE:  // 连字符(脊柱式) + 小驼峰(驼峰)命名
 | 
					        case SupportCase.KEBAB_CAMEL_CASE:  // 中划线(连字符/脊柱式) + 小驼峰(驼峰)命名
 | 
				
			||||||
        case SupportCase.KEBAB_PASCAL_CASE: // 连字符(脊柱式) + 大驼峰(帕斯卡)命名
 | 
					        case SupportCase.KEBAB_PASCAL_CASE: // 中划线(连字符/脊柱式) + 大驼峰(帕斯卡)命名
 | 
				
			||||||
        case SupportCase.KEBAB_UPPER_CASE:  // 连字符(脊柱式) + 全大写命名
 | 
					        case SupportCase.KEBAB_UPPER_CASE:  // 中划线(连字符/脊柱式) + 全大写命名
 | 
				
			||||||
            spaceCharacter = '-';
 | 
					            spaceCharacter = '-';
 | 
				
			||||||
            break;
 | 
					            break;
 | 
				
			||||||
        case SupportCase.SPACE_CASE:        // 空格分隔命名
 | 
					        case SupportCase.SPACE_CASE:        // 空格分隔命名
 | 
				
			||||||
@@ -80,7 +80,7 @@ export function caseConversion(targetCase: SupportCase, str: string, eol: EOL, c
 | 
				
			|||||||
            switch (targetCase) {
 | 
					            switch (targetCase) {
 | 
				
			||||||
                case SupportCase.CAMEL_CASE:        // 小驼峰(驼峰)命名
 | 
					                case SupportCase.CAMEL_CASE:        // 小驼峰(驼峰)命名
 | 
				
			||||||
                case SupportCase.SNAKE_CAMEL_CASE:  // 下划线(蛇形) + 小驼峰(驼峰)命名
 | 
					                case SupportCase.SNAKE_CAMEL_CASE:  // 下划线(蛇形) + 小驼峰(驼峰)命名
 | 
				
			||||||
                case SupportCase.KEBAB_CAMEL_CASE:  // 连字符(脊柱式) + 小驼峰(驼峰)命名
 | 
					                case SupportCase.KEBAB_CAMEL_CASE:  // 中划线(连字符/脊柱式) + 小驼峰(驼峰)命名
 | 
				
			||||||
                case SupportCase.SPACE_CAMEL_CASE:  // 空格分隔 + 小驼峰(驼峰)命名
 | 
					                case SupportCase.SPACE_CAMEL_CASE:  // 空格分隔 + 小驼峰(驼峰)命名
 | 
				
			||||||
                    if (isFirstWord) {
 | 
					                    if (isFirstWord) {
 | 
				
			||||||
                        transformedWords.push(word);
 | 
					                        transformedWords.push(word);
 | 
				
			||||||
@@ -93,17 +93,17 @@ export function caseConversion(targetCase: SupportCase, str: string, eol: EOL, c
 | 
				
			|||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
                case SupportCase.PASCAL_CASE:       // 大驼峰(帕斯卡)命名
 | 
					                case SupportCase.PASCAL_CASE:       // 大驼峰(帕斯卡)命名
 | 
				
			||||||
                case SupportCase.SNAKE_PASCAL_CASE: // 下划线(蛇形) + 大驼峰(帕斯卡)命名
 | 
					                case SupportCase.SNAKE_PASCAL_CASE: // 下划线(蛇形) + 大驼峰(帕斯卡)命名
 | 
				
			||||||
                case SupportCase.KEBAB_PASCAL_CASE: // 连字符(脊柱式) + 大驼峰(帕斯卡)命名
 | 
					                case SupportCase.KEBAB_PASCAL_CASE: // 中划线(连字符/脊柱式) + 大驼峰(帕斯卡)命名
 | 
				
			||||||
                case SupportCase.SPACE_PASCAL_CASE: // 空格分隔 + 大驼峰(帕斯卡)命名
 | 
					                case SupportCase.SPACE_PASCAL_CASE: // 空格分隔 + 大驼峰(帕斯卡)命名
 | 
				
			||||||
                    transformedWords.push(pascalCaseWord);
 | 
					                    transformedWords.push(pascalCaseWord);
 | 
				
			||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
                case SupportCase.SNAKE_CASE:        // 下划线(蛇形)命名
 | 
					                case SupportCase.SNAKE_CASE:        // 下划线(蛇形)命名
 | 
				
			||||||
                case SupportCase.KEBAB_CASE:        // 连字符(脊柱式)命名
 | 
					                case SupportCase.KEBAB_CASE:        // 中划线(连字符/脊柱式)命名
 | 
				
			||||||
                case SupportCase.SPACE_CASE:        // 空格分隔命名
 | 
					                case SupportCase.SPACE_CASE:        // 空格分隔命名
 | 
				
			||||||
                    transformedWords.push(word);
 | 
					                    transformedWords.push(word);
 | 
				
			||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
                case SupportCase.SNAKE_UPPER_CASE:  // 下划线(蛇形) + 全大写命名
 | 
					                case SupportCase.SNAKE_UPPER_CASE:  // 下划线(蛇形) + 全大写命名
 | 
				
			||||||
                case SupportCase.KEBAB_UPPER_CASE:  // 连字符(脊柱式) + 全大写命名
 | 
					                case SupportCase.KEBAB_UPPER_CASE:  // 中划线(连字符/脊柱式) + 全大写命名
 | 
				
			||||||
                case SupportCase.SPACE_UPPER_CASE:  // 空格分隔 + 全大写命名
 | 
					                case SupportCase.SPACE_UPPER_CASE:  // 空格分隔 + 全大写命名
 | 
				
			||||||
                    transformedWords.push(word.toUpperCase());
 | 
					                    transformedWords.push(word.toUpperCase());
 | 
				
			||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -80,7 +80,7 @@ export enum SupportCase {
 | 
				
			|||||||
    SNAKE_UPPER_CASE,
 | 
					    SNAKE_UPPER_CASE,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * 连字符(脊柱式)命名
 | 
					     * 中划线(连字符/脊柱式)命名
 | 
				
			||||||
     * Kebab Case / Spinal Case
 | 
					     * Kebab Case / Spinal Case
 | 
				
			||||||
     * e.g. foo-bar
 | 
					     * e.g. foo-bar
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
@@ -91,7 +91,7 @@ export enum SupportCase {
 | 
				
			|||||||
    KEBAB_CASE,
 | 
					    KEBAB_CASE,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * 连字符(脊柱式) + 小驼峰(驼峰)命名
 | 
					     * 中划线(连字符/脊柱式) + 小驼峰(驼峰)命名
 | 
				
			||||||
     * Kebab Camel Case
 | 
					     * Kebab Camel Case
 | 
				
			||||||
     * e.g. foo-Bar
 | 
					     * e.g. foo-Bar
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
@@ -101,7 +101,7 @@ export enum SupportCase {
 | 
				
			|||||||
    KEBAB_CAMEL_CASE,
 | 
					    KEBAB_CAMEL_CASE,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * 连字符(脊柱式) + 大驼峰(帕斯卡)命名
 | 
					     * 中划线(连字符/脊柱式) + 大驼峰(帕斯卡)命名
 | 
				
			||||||
     * Kebab Pascal Case
 | 
					     * Kebab Pascal Case
 | 
				
			||||||
     * e.g. Foo-Bar
 | 
					     * e.g. Foo-Bar
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
@@ -111,7 +111,7 @@ export enum SupportCase {
 | 
				
			|||||||
    KEBAB_PASCAL_CASE,
 | 
					    KEBAB_PASCAL_CASE,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * 连字符(脊柱式) + 全大写命名
 | 
					     * 中划线(连字符/脊柱式) + 全大写命名
 | 
				
			||||||
     * Kebab Upper Case
 | 
					     * Kebab Upper Case
 | 
				
			||||||
     * e.g. FOO-BAR
 | 
					     * e.g. FOO-BAR
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
@@ -302,25 +302,25 @@ export const quickPickSupportCases = [
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        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.kebab, ...keyword.pascal],
 | 
					        keyword: [...keyword.kebab, ...keyword.pascal],
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        type: SupportCase.KEBAB_UPPER_CASE,
 | 
					        type: SupportCase.KEBAB_UPPER_CASE,
 | 
				
			||||||
        name: '连字符(脊柱式) + 全大写命名',
 | 
					        name: '中划线(连字符/脊柱式) + 全大写命名',
 | 
				
			||||||
        shortName: '脊柱大写',
 | 
					        shortName: '脊柱大写',
 | 
				
			||||||
        keyword: [...keyword.kebab, ...keyword.upper],
 | 
					        keyword: [...keyword.kebab, ...keyword.upper],
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user