idea快捷键

idea快捷键

打开file下面的project  structure:⌘+; 

菜单栏help里面有一个find action:command+shift+a

选中move caret to next:按shift+左右箭

移动到头部move caret to line start,尾部end:command+左右键

一:跳转:

项目之间的跳转:option+command+[ 或者 alt+command+]

打开project选项:command+1

上下文件跳转:上下箭头

选择文件时:回车或者esc

最近打开文件recent file:command+e

最近编辑文件:recent edit file:command+shift+e

最近编辑位置( navigate):last edit location:command+shift+delete

下一编辑位置( navigate):next edit location:command+control+delete

上,下一个浏览位置:(back,forward):option+command+左键头或者右键头

标签:command+fn+f11 取消也是一样

跳转标签:control+标签数字

调出收藏(favorites):command+2

类添加收藏:option+shift+f

添加一个emacsIdEAs插件后:在本页中查找某个字符,光标跳转:control+j

 

二:精准搜索:

进入到某个类:command+n

找到某个文件:command+shift+n

查找类中的某个方法:option+command+shift+n

字符串搜索:find in path:control+shift+f

 

三:列表操作

选中的单词变大写(Toggle Case):command+shift+u

选中的字符在全局被全选批量操作:(select all Occurrences):control+command+G

 

四:live templates

自定义模板:

main主方法: public static void main(String[] args) {     $END$   }

private static final Logger定义常量:private static final int DEFORT $var$ = $var$;

 

五:postfix

100.for

.sout

psvm 

.field

.return

.nn(!=null)

 

六:show  intention actions

option+enter

 

七:重构,抽取

重命Rename名选中:shift+f6,我的是shift+fn+f6

函数重构change signature:command+f6

抽取字符串为变量:⌥+⌘+v,

抽取字符串为静态常量:⌥+⌘+C,

抽取方法参数:⌥+⌘+p,

抽取函数:⌥+⇧+m,

 

八:git

previous change:⌃+⌥+⇧+上箭头

 

九:断点调试:

添加,取消断点toggle line breakpoint:command+f8我的是command+fn+f8

单目运行程序:command+f9   

运行后下一步:f8

下一个断点resume:f9

查看所有断点:⇧⌘f8

条件断点:右键或者command+shift+f8

表达式求值(evaluate expression):⌥+f8

运行到光标所在的位置(run to cursor):⌥+f9

修改运行的值(set values):f2

运行当前上下文(某段代码):⌘+⇧+f9

edit configurations:⌘+⇧+j

 

十:文件操作

当前文件夹下新建另一个文件:control+option+n

复制文件(copy):f5

复制文件名:command+c

复制完整文件名:command+fn+c

复制多个内容的剪切板:⌘+⇧+v

十一:

查看maven依赖show dependencies:⌥+⇧+⌘+u

类的继承依赖关系:⌥+⇧+⌘+u或者  control +h

 

 

 

⌃。⌥。⌘。⇧、

 

control是⌃,option是⌥,command是⌘,shift是⇧

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章