添加 .editorconfig;空格缩进规范化
This commit is contained in:
26
.editorconfig
Normal file
26
.editorconfig
Normal file
@@ -0,0 +1,26 @@
|
||||
# EditorConfig is awesome: https://editorconfig.org
|
||||
|
||||
# top-most EditorConfig file
|
||||
root = true
|
||||
|
||||
[*]
|
||||
end_of_line = lf
|
||||
|
||||
# Unix-style newlines with a newline ending every file
|
||||
insert_final_newline = true
|
||||
|
||||
# Set default charset
|
||||
charset = utf-8
|
||||
|
||||
[*.{js,ts}]
|
||||
# 4 space indentation
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
|
||||
# Tab indentation (no size specified)
|
||||
[.vscode/**.json]
|
||||
indent_style = tab
|
||||
|
||||
# 历史原因需要保留 tab 缩进的代码文件
|
||||
[src/{test/extension.test.ts,extension.ts}]
|
||||
indent_style = tab
|
@@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
### Internal
|
||||
|
||||
- Add `.editorconfig` file. (添加 `.editorconfig` 文件)
|
||||
- Upgrade plugin dependency versions. (升级插件依赖版本)
|
||||
- Modify eslint configuration. (调整 eslint 配置)
|
||||
|
||||
@@ -119,4 +120,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- Adds an editor context menu with submenu
|
||||
- Implement conversion to Camel Case, Pascal Case, Snake Case(Snake Camel, Snake Pascal, Snake Upper), Kebab Case(Kebab Camel, Kebab Pascal, Kebab Upper), Lower Case, Upper Case
|
||||
- Add test cases
|
||||
- Initial release
|
||||
- Initial release
|
||||
|
@@ -113,4 +113,4 @@ function replaceTextEditorSelectedText() {
|
||||
});
|
||||
userSelection.lastConvertedSelectionsText = textList;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -112,4 +112,4 @@ function replaceTextEditorSelectedText() {
|
||||
});
|
||||
userSelection.lastConvertedSelectionsText = textList;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -10,7 +10,7 @@ let statusBarItemList: Array<vscode.StatusBarItem> = [];
|
||||
* @since 2024-04-07
|
||||
*/
|
||||
export function createStatusBarItem() {
|
||||
// 变量转换状态栏 2024.04.07
|
||||
// 变量转换状态栏 2024.04.07
|
||||
const createVariableConvertStatusBarItem = () => {
|
||||
const statusBarItem = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Left);
|
||||
// Icon Listing docs: https://code.visualstudio.com/api/references/icons-in-labels#icon-listing
|
||||
@@ -20,7 +20,7 @@ export function createStatusBarItem() {
|
||||
// statusBarItem.show();
|
||||
return statusBarItem;
|
||||
};
|
||||
// 路径转换状态栏 2024.12.14
|
||||
// 路径转换状态栏 2024.12.14
|
||||
const createPathConvertStatusBarItem = () => {
|
||||
const statusBarItem = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Left);
|
||||
statusBarItem.text = '$(sync-ignored)路径转换'; // italic symbol-null
|
||||
@@ -51,4 +51,4 @@ export function updateStatusBarItemVisable(selectTextLength: number) {
|
||||
statusBarItemList.forEach(statusBarItem => {
|
||||
statusBarItem.hide();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@@ -41,4 +41,4 @@ export function stringListArrayDuplicateRemoval(stringArr: Array<string[]>): Arr
|
||||
}
|
||||
}
|
||||
return newArr;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user