WebStorm

[TOC]

一、注册码/破解

二、代码格式化

image-20220318221847396

image-20220317154211932

三、VSCode好用的工具

1、koroFileHeader(vscode文件头部注释插件)

1、安装

image-20220413163004512

2、配置

image-20220413160825547

初始值为:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"diffEditor.ignoreTrimWhitespace": true,
"[dart]": {
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.rulers": [
80
],
"editor.selectionHighlight": false,
"editor.suggest.snippetsPreventQuickSuggestions": false,
"editor.suggestSelection": "first",
"editor.tabCompletion": "onlySnippets",
"editor.wordBasedSuggestions": false
},
"workbench.colorTheme": "Visual Studio Dark",
"eslint.alwaysShowStatus": true,
"dart.debugExternalLibraries": false,
"dart.debugSdkLibraries": false,
"dart.debugExternalPackageLibraries": false,
"dart.flutterSdkPath": "/Applications/flutter",
"editor.formatOnSave": true
}

在json后面加上以下内容:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// "editor.fontSize": 20,
// "files.autoSave": "onFocusChange",
// "editor.formatOnPaste": true,
// "workbench.colorTheme": "Solarized Light",
// "[vue]": {
// "editor.defaultFormatter": "octref.vetur"
// },
// "[javascript]": {
// "editor.defaultFormatter": "esbenp.prettier-vscode"
// },
"fileheader.customMade": {
"Author": "dvlproad",
"Date": "Do not edit",
"LastEditors": "填入自己的名字",
"LastEditTime": "Do not edit",
"Description": "",
"FilePath": "Do not edit",
},
"fileheader.cursorMode": {
"description": "",
"event": "",
"param": "",
"return": ""
},
"fileheader.configObj": {
"prohibitAutoAdd": [
"json",
"md",
], // 禁止.json .md文件,自动添加头部注释
},

3、如何使用

文件头部添加注释:

快捷键:ctrl+alt+i
功能:保存文件的时候,自动更新最后的编辑时间和编辑人
在光标处添加函数注释:

快捷键:ctrl+alt+t
功能在光标处自动生成一个注释模板
效果

1
2
3
4
5
6
7
8
/*
* @Author: dvlproad
* @Date: 2022-04-13 10:17:11
* @LastEditors: 填入自己的名字
* @LastEditTime: 2022-04-13 16:26:54
* @Description:
* @FilePath: /wish/Users/qian/Project/flutter_effect_kit/lib/src/hud/loading_util.dart
*/

2、GitLens(VsCode中好用的git源代码管理插件:每一行代码旁边都有日志)

四、VSCode快捷键

VSCode快捷键1_前进后退

VSCode快捷键1_前进后退

五、更多好用VSCODE 插件推荐(2023版)