diff --git a/.gitignore b/.gitignore index 0b60dfa..f96ebaa 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ dist node_modules .vscode-test/ *.vsix + +*.ignore \ No newline at end of file diff --git a/package.json b/package.json index 16870d5..2dc9b44 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,10 @@ "command": "extension.toLowerCase", "title": "全小写 (Lower Case) [ foobar ]" }, + { + "command": "extension.toCamelSnakeCase", + "title": "驼峰蛇形命名 (Camel Snake Case) [ Foo_Bar ]" + }, { "command": "editor.action.transformToCamelcase", "title": "[VSCode 自带] 驼峰式大小写 (Camel Case) [ fooBar ]" diff --git a/src/type-definition/support-case.ts b/src/type-definition/support-case.ts index c458a79..92b7b64 100644 --- a/src/type-definition/support-case.ts +++ b/src/type-definition/support-case.ts @@ -69,4 +69,14 @@ export enum SupportCase { * @since 2024-04-02 */ LOWER_CASE, -} \ No newline at end of file + + /** + * 驼峰蛇形命名 + * Camel Snake Case + * e.g. Foo_Bar + * + * @alias: camelSnakeCase / CamelSnakeCase / camel_snake_case / CAMEL_SNAKE_CASE + * @since 2024-04-02 + */ + CAMEL_SNAKE_CASE, +}