IntelliJ idea for Mac shortcut keys

Source: Internet
Author: User
Tags svn update

Reprint: http://blog.csdn.net/xiaohulunb/article/details/20729261

and modified by Rodolfo .

Problems that occur in use:

Issue 1: Once installed, IntelliJ saves your configuration information by default, and after a problem is installed, the configuration is still the same as before.

Delete the associated configuration file, the address is: ~user/repository/preferences/intellijidea13.

Problem 2:web Project cannot run after entry

Check that the root directory for the project is Web or Webroot, and then set the output compilation path for the facets in the project settings.

Eclipse... The default Webroot,intellij default for the project is web.

Issue 3:window version using GitHub cannot find Git.exe execution file

When the GitHub client is installed under window, the default git.exe is hidden, so you cannot find it when you set the Git path in setting.

The Hidden Path is:

Issue 4: Encoding issues when generating Javadoc

Enter "-encoding utf-8-charset utf-8" in the "other command line arguments:" section of the "Tools->gerenate JavaDoc" Panel,
is to read files and generate Javadoc with UTF-8 encoding

Common idea shortcut keys Http://www.jetbrains.com/idea/docs/IntelliJIDEA_ReferenceCard_Mac.pdf keymap--url-"Map
1 声明一下,以下快捷键都是在Mac下的,Windows下的话,会有些不同,请参照Windows版IDEA的keymap文档。

Some tips:

1 在任何时候,按下alt键,界面上的菜单字符中有些会有下划线,这时用alt+下划线即是执行这个菜单功能的快捷键。
2 可自定义一些快捷键,避免使用鼠标。IDEA支持宏,不过我用得不多,只用过那么一两次,使用起来也很简单。

One, the view toggle shortcut key

1 各视图区域的切换 cmd + 视图区域对应的数字
2 切换到maven的视图 alt + m
3 装了switchTab插件后,按下ctrl+tab后会得到可切换的区域列表
4 cmd+e                 列出最近查看的文件列表
5 shift + cmd + e   最近修改文件列表
6 上面两个键在开发过程中非常有用。

Second, search shortcut keys

1 IDEA的搜索非常强大,可秒杀eclipse.在project,maven等视图及出现列表的场景下,直接输入字符即开始搜索,可以说搜索无处不在。
2 在编辑文档中,cmd+f 开始搜索 cmd + r 搜索替换
3 在project中,按下ctrl + shift + f(r) 即是在当前目前下递归查找或替换,搜索出来后,要全部替换,按下alt + a
4 alt + F7      搜索对象被引用的地方
5 cmd + F7   搜索对象在当前文件被引用的地方
6 cmd + n     查找类
7 shift + cmd + n  查找文件
8 上面两个查找都支持简单的正则表达式,还支持直接按大写字母的缩略查找如JsonTranscoder,只需要输入JT

Third, edit the code shortcut keys

01 cmd + j                 调出IDEA的神器live template,你懂的
02 ctrl + n                各种自动生成代码,创建文件,生成set get override…
03 alt + enter           调出IDEA对出错点的提示处理方法,熟练使用可使你写代码的速度提升5
04 cmd + D              复制粘贴当前行到下一行
05 cmd + c|v|x        这些你都懂的
06 shift + cmd + v  调出IDEA寄存器中保存的最近复制的N份内容,可选择性粘贴
07 cmd + /                注释/取消注释
08 cmd + w               选中当前光标所在的字
09 shift + cmd + enter 神器,补全当前行,最常用的场景时补全当前行后的;号,并将光标定位到下一行
10 cmd + O              overide 方法
11 cmd + I                implement 方法
12 其实上面两个快捷键很少用,因为有alt + enter 可完全替换掉这两个快捷键的功能
13 shift + cmd + L                   格式化代码
14 shift + cmd + O                   staticimport
15 shift + cmd + up/down    将当前代码段上/下移
16 shift + alt + up/down       将当前行上/下移
17
18 重构的快捷键
19
20 F6 移动文件到其它地方
21 F5 拷贝文件到其它地方
22 IDEA的移动文件功能非常强大,会将所有的使用该文件的类和XML配置中的类路径全部更新为新的路径。
23 shift + F6              改名
24 cmd + F6                修改方法签名
25 shift + cmd + F6    修改参数的类型
26 shift + cmd + v       引入一个局部变量
27 shift + cmd + p       引入一个参数
28 shift + cmd + f        引入一个类变量
29 shift + cmd + m      引入一个方法
30 shift + cmd + c        引入一个常量
31
ALT + cmd + F7 to see where a method is called

Iv. viewing code shortcut keys

1 cmd + p                  查询某方法的参数信息
2 cmd + b                  跳到调用方法的定义处
3 shift + cmd + b          跳到方法的实现处
4 cmd + u                  跳到方法在父类或接口的定义处
5 ctrl + up/down           跳到上/下一方法
6 alt + cmd + left/right   跳到上/下一次光标查看处
7 cmd + g                  跳到指定行
8 cmd + shift + h          显示方法的层级结构
9 alt + cmd + h            调用层级结构

V. Operating Procedures and debug

1 shift + alt + F9                      debug模式运行程序
2 shift + alt + F10                     运行程序
3 F7                                    单步进入
4 F8                                    单步跳过
5 F9                                    跳过本次debug
6 alt + F8                              debug时执行选中的语句

Vi. Other common shortcut keys

1 cmd + ,                  调出setting界面
2 cmd + ;                  调出项目setting界面
3 cmd + f4                 关闭当前界面

Plus, I've also customized several SVN-related shortcuts.

1 cmd + alt + ctrl + a         svn add
2 cmd + alt + ctrl + u         svn update
3 cmd + alt + ctrl + m         svn commit
4 cmd + alt + ctrl + h         svn history
5 cmd + alt + ctrl + c         svn compare
6 cmd + alt + ctrl + p         将当前编辑界面的内容垂直分屏,在比对文件时非常好用

When I read the book "Refactoring" I only know that I translated the slag, the meaning is similar.

Refactoring

Code Check

IntelliJ idea for Mac shortcut keys

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.