webstorm 使用积累
## 快捷键们
(一般 mac 是 command键,windows是ctrl键 )
command + F 查找当前文档
command + R 替换
command + Shift + F 全局搜索字段 / 文件
command + B || command + Click 跳到变量申明处
command + P 显示参数信息
command + Y 小浮窗显示变量声明时的行
command + E 打开最近打开的文件
command + shift + C 复制文件的路径
command + option + t 用 (if..else, try..catch, for, etc.)包住
shift + shift 查找文件
command + o 跳转到class
command + , 打开preferences
command + option + left/right 返回到 上次/下次 浏览的位置
## 调整字体
![]()

## 查看每行是谁改动的
行数,右键,annotate

类比vscode,可装插件Git blame、Annotator、GitLens 等等;
webstorem可以装插件 gittoolbox ;

## 快速打console


配置好之后,在编辑器里 输出 c(就是自己自定义的),然后按tab键,就出来console了,然后自己再输入变量;
找到vscode替代了,但是感觉不如vscode 的 log wrapper 好用。
## git切换分支
项目根目录 > Git > Repository > Brabches

选择要切换的远程,点击checkout as 即可
![]()
或者直接点击右下角,可直接选指定分支


## diff本地改动


或

## 可以整体看一个文件里定义了哪些属性、哪些方法;

## 符号含义
| Icon | Description |
|---|---|
|
|
Class |
|
|
Abstract Java class |
|
|
Annotation |
|
|
Enumeration |
|
|
Exception |
|
|
Final Java class |
|
|
Interface |
|
|
Java class that contains declaration of the main() method. |
|
|
Test case |
|
|
Java class located out of the source root. Refer to the section Configuring Content Roots for details. |
|
|
Java class excluded from compilation. |
|
|
Method |
|
|
Abstract method |
|
|
Field |
|
|
Variable |
|
|
Property |
|
|
Parameter |
|
|
Element |
|
|
Directory |
|
|
Module |
|
|
Group of modules |
|
|
Package |
|
|
Source root |
|
|
Test root |
|
|
Excluded root |
|
|
Resources |
|
|
Test resources |
|
|
Generated source roots |
|
|
Generated test source roots |
| Visibility modifiers | |
|
|
Read-only class, e.g. from a jar of an external library. |
|
|
private |
|
|
protected |
|
|
package protected |
|
|
static |
|
|
public |
参考:https://www.jetbrains.com/help/idea/2016.1/symbols.html
疑问:
webstorm的terminal 怎么split呢?
答:装2020 及以上版本才有,右键tab就能看到;见评论

浙公网安备 33010602011771号