在Mac 平台上使用了一段时间的IntelliJ IDEA,它在智能代码助手、代码自动提示、重构、J2EE支持、Maven、JUnit、Git整合、代码审查、 创新的GUI设计等方面的功能能够说是超常的,业界良心。php
若是想学习有关如何使用IDEA的知识,能够多访问官方文档(http://www.jetbrains.com/),对初学者来讲是足够了,至少我我的是这么走过来的。若是以为阅读官方文档耗时费力,我搜集到了一个学习的教程,自我感受整理的还不错,分享连接http://www.phperz.com/special/83.html。html
我学习的过程当中以为以下几点比较重要:服务器
1.基本概念app
Project 至关于 Eclipse的Workspacemaven
Modules 至关于 Eclipse 的Project学习
Facets 表示这个module有什么特征,好比 Web,Spring和Hibernate等; this
Artifact 是maven中的一个概念,表示某个module要如何打包,例如war exploded、war、jar、ear等等这种打包形式;一个module有了 Artifacts 就能够部署到应用服务器中了!spa
artifact你把它理解成“生成的东西”就差很少了。这个词强调的是这是你软件生产过程当中某一步的产生物,不像程序自己,或者是配置文件这些,是你手写出来的。 插件
Exploed在给项目配置Artifacts的时候有好多个type的选项,explode 在这里你能够理解为展开,不压缩的意思。也就是war、jar等产出物没压缩前的目录结构。建议在开发的时候使用这种模式,便于修改了文件的效果马上显现出来。设计
Archive和Exploed是相对的,意味最终的产物为打包的内容,能够是war\ear\jar包。【Archive 原意为存档,这里能够理解为打包】
默认状况下,IDEA的Modules和Artifacts的output目录已经设置好了,不须要更改,打成war包的时候会自动在WEB-INF目录下生产classes目录,而后把编译后的文件放进去。
Langugae Level
SDK
2.经常使用设置(注意我这里说的经常使用是指必须掌握的,这个不掌握,后续开发过程当中会很迷惑)
设置File Encoding
团队协做开发时,须要注意哪些内容是须要归入版本管理哪些又是不能的?好比我的配置数据就不能归入版本管理,若是这样作了,会常常性的出现冲突。
设置适合本身的快捷键。
3.熟悉经常使用的快捷键(我的的建议是预置的快捷键最好不要改,除非你以为学习成本过高)
Ctrl + B (or Command + B in Mac)
directs the developer to the declarationof methods, fields, constructors, and so on. To use this shortcut correctly,the developer needs to hover the cursor over the element being used.
Ctrl+N and Ctrl+Shift+N(or Command+NandCommand+Shift+N inMac)
are used to navigate to a class and a file, respectively; you just needto type the name of the resource you want.
Ctrl + Alt + B (or Command + Option + B in Mac)
directs the developer to the implementation of an element (class, interface, method, and such). In case the element has more than one implementation, a list with all implementations will appear.
Ctrl + E (or Command + E in Mac)
can be used so the developer can see therecently opened files, allowing him/her to reopen them easily and fast.
Ctrl + Tab
will display a simple dialog with opened files and availabletool tabs.
Ctrl + F (or Command + F in Mac)
shows a find text field to run a search for sentences in the current file. You can configure regex to find things and use other options available in the find bar.
Ctrl + Shift + F
will open a dialog that will allow you to run a search for a sentence through all the files in the project. The developer can filter where the search will be done and define some other options.
4.使用提升效率的插件(好比:支持热部署插件)
JRebel
Hungry Backspace