IntelliJ IDEA 14.x 快捷键/个性化设置
来源:互联网 发布:协同过滤 矩阵 编辑:程序博客网 时间:2024/06/03 15:59
常用快捷键设置(设置成跟Eclipse差不多)
按照路径:File -> Settings -> Appearance & Behavior -> Keymap -> Copy 一份 Eclipse,命名为 Eclipse_blog.snsgou.com
快捷键功能路径Ctrl + /双斜杠注释Main menu -> Code -> Comment width Line CommentCtrl + Shilft + /块注释Main menu -> Code -> Comment width Block CommentAlt + /代码提示Main menu -> Code -> Completion -> Basic Ctrl + I格式化代码Main menu -> Code -> Reformat CodeCtrl + D删除当前行Editor Actions -> Delete LineCtrl + E最近打开的文件列表Main menu -> View -> Recent FilesCtrl + W关闭正在编辑的活动窗口。Main menu -> Window -> Editor Tabs -> CloseCtrl + F搜索、替换Main menu -> Edit -> Find -> ReplaceCtrl + H高级查找Main menu -> Edit -> Find -> Find in PathCtrl + L定位到指定行Main menu -> Navigate -> LineCtrl + Alt + PageDownCtrl + Alt + PageUp复制当前行到下(上)一行中。比Ctrl+C单纯的复制功能要方便好用(省掉了粘贴步骤),主要是用在编写代码时,需要移动代码的地方。Editor Actions -> Duplicate LinesAlt + ↓
Alt + ↑移动单行(多行)代码。也是比Ctrl+C更好的快捷键。Main menu -> Code -> Move Statement Down
Main menu -> Code -> Move Statement UpCtrl + Shift + R根据文件名(模糊查询)快速定位文件(任何类型)Main menu -> Navigate -> FileCtrl + Shift + U大小写转换Main menu -> Edit -> Toggle CaseF1查看文档Main menu -> View -> Quick DocumentationF2重命名Main menu -> Refactor -> RenameCtrl + I格式化代码Main menu -> Code -> Reformat Code
弱弱的补充说明一下:
新买了一台 ThinkPad E440,尽管关闭/禁用了 屏幕的快捷键 Ctrl + Alt + ↓,但是在 InterlliJ IDEA中这组快捷键还是不能用,没办法,最后换成了新的组合键 Ctrl + Alt + PageDown 。
2、File -> Settings -> Appearance & Behavior
(1).-> Appearance -> Theme -> 下拉选择 Alloy.IDEA Theme
(2).-> Appearance -> 勾选 Orerride default fonts by(not recommended):
Name: 微软雅黑 Size:12 Line spacing: 1.2
(3).-> Appearance -> Window Options -> 去掉勾选 Animate windows,勾选 Show tool window bars
(4).-> Appearance -> Presentation Mode -> Font size: 24
(5).-> Menus and Toolbars -> Main Toolbar -> 把 Synchronize 移到 Redo 的后面
(6).-> Menus and Toolbars -> Main Toolbar -> Rmove 掉 Help Topics
(7).-> System Settings -> Startup/Shutdown -> 去掉勾选 Reopen last project on startup,去掉勾选 Confirm application exit
(8).-> System Settings -> Project Opening -> 勾选 Open project in the same window
(9).-> System Settings -> Synchronization -> 全部勾选,并且 Save files automatically if application is idle for 3 sec.
(10).-> System Settings -> Updates -> 去掉勾选 Check for updates in channel
(11).-> System Settings -> Usage Statistics -> 去掉勾选 Allow sending usange statistics to JetBrains s.r.o.
3、File -> Settings -> Editor
(1).-> General -> Mouse -> 勾选 Change font size (Zoom) with Ctrl + Mouse Wheel
(2).-> General -> Virtual Space -> 勾选 Show virtual spaces at file bottom
(3).-> General -> Scrolling -> 去掉勾选 Smooth scrolling
(4).-> General -> Other -> Srip trailing spaces on Save,下拉选择 All
(5).-> General -> Smart Keys -> 去掉勾选 Backspace smart indent
(6).-> General -> Smart Keys -> 去掉勾选 Reformat block on typing '}'
(7).-> General -> Smart Keys -> Reformat on paster: 选择 None
(8).-> General -> Appearance -> 勾选 Show line numbers
(9).-> General -> Appearance -> 勾选 Show whitespaces
(10).-> General -> Editor Tabs -> Tab Closing Policy -> Tab limit: 20
(19).-> General -> Editor Tabs -> 勾先 Mark modified tabs with asterisk 【用*在Tab标签中标识编辑过的文件】(新添加)
(11).-> General -> Code Folding -> 去掉勾选 One-line methods
(12).-> General -> Code Completion -> Case sensitive completion -> 下拉选择 None 【去除自动补全时,大小写敏感】
(13).-> General -> Code Completion -> 勾选 Autopopup documentation in (ms): 200
(14).-> General -> Code Completion -> Parameter Info -> 勾选 Autopopup in (ms): 200
(15).-> Inspections -> 下拉框选择“Default” -> Spelling -> Typo -> Options ->【关闭单词拼写检查】
去掉勾选 (a)Process code (b)Procss literals (c)Process comments
(16).-> Colors & Fonts -> Scheme name -> Copy 一份 Default,并命名为 blog.snsgou.com
(17).-> Colors & Fonts -> Font -> Editor Font -> Primary font: Courier New,Size: 14,Line spacing: 1.0
(18).代码块颜色主要参考了 Eclipse,并做了些小修改
-> Colors & Fonts -> Font
-> Colors & Fonts -> Font -> General
-> Colors & Fonts -> Font -> Language Defaults
-> Colors & Fonts -> Font -> Java
-> Colors & Fonts -> Font -> Java -> JavaDoc tag value【代码样本中根本没有这货!把我害苦了,找了好久】 -> Foreground: #3F55BF
(20). 我过滤的文件及目录类型
->File Types -> Ignore files and folders
添加 *.iml;*.idea;*.classpath;*.project;*.settings;target;
4、File -> Other Settings -> Default Settings -> Build, Execution, Deployment
(1).->Compiler -> 勾选 Make profect automatically【自动编译】
5、禁用一些(不想用的)插件
File -> Settings -> Plugins -> 去掉勾选:
Git Integration
GitHub
CVS Integration
TFS Integration
Flash/Flex Support
Google App Engine Integration
IDEtalk
ASP
Cloud Foundry integration
CloudBees integration
6、最后记得备份一下“个性化设置”:
File -> Export Settings
注意事项:
在主菜单 File下面,有个奇怪的 Power Save Mode,顾名思义是 省电模式。当你勾选此模式以后,IntelliJ不会给你完成任何自动完成的功能,例如本来你输入一个字符会自动提示的,勾选以后就没有了,如果出现此问题的话可以考虑是不是自己手贱点过这个按钮噢,这个还是比较适合开会的时候无聊看代码用的,又省电又不影响你看代码。
原文地址: http://www.open-open.com/lib/view/open1433837513864.html
- IntelliJ IDEA 14.x 快捷键/个性化设置
- IntelliJ IDEA 14.x 快捷键/个性化设置
- IntelliJ IDEA快捷键设置
- intellij idea快捷键设置
- IntelliJ IDEA 快捷键和设置
- IntelliJ IDEA 快捷键和设置
- IntelliJ IDEA 快捷键和设置
- IntelliJ IDEA 快捷键和设置
- IntelliJ IDEA 快捷键和设置
- IntelliJ IDEA 快捷键和设置
- IntelliJ IDEA 快捷键和设置
- IntelliJ IDEA 快捷键和设置
- IntelliJ IDEA 快捷键和设置
- IntelliJ IDEA 快捷键和设置
- IntelliJ IDEA 快捷键和设置
- IntelliJ IDEA 快捷键和设置
- IntelliJ IDEA 快捷键和设置
- IntelliJ IDEA 快捷键和设置
- 安卓选择图片或拍照获取的照片过大时,裁剪图片
- 算法-第四版-练习1.2.19解答
- AndroidManifest.xml中的一些属性
- 数据压缩(Gzip),重定向,转发,图片下载
- 如何获取UITableView 每个section的Rect
- IntelliJ IDEA 14.x 快捷键/个性化设置
- iOS 更新xcode7.3后ReactiveCocoa中的weak问题的解决方法
- C++开发必看 四种强制类型转换的总结
- 学习面向对象编程和面向接口编程的区别?
- 为什么你投不出阿里巴巴?这些大咖的分享你读了吗?
- adaboost训练 之 弱分类器训练原理
- RabbitMQ (五)主题(Topic)
- 获取屏幕宽度高度截图的工具类
- VC如何获取对话框中控件的坐标