IntelliJ IDEA 使用经验总结
一. 准备工作
1. 点击此下载 IntelliJ IDEA 开发工具
二. 注册
1. 修改 C:\Windows\System32\drivers\etc\hosts ,在末尾添加 0.0.0.0 account.jetbrains.com
2. 点击此获得注册码,进行注册
三. 整合Maven
1. Maven配置文件 settings.xml
<localRepository>D:/Documents/.m2/repository</localRepository> <server>
<id>releases</id>
<username>admin</username>
<password>admin123</password>
</server>
<server>
<id>snapshots</id>
<username>admin</username>
<password>admin123</password>
</server>
<server>
<id>thirdparty</id>
<username>admin</username>
<password>admin123</password>
</server> <profile>
<id>nexus</id> <repositories>
<repository>
<id>release</id>
<name>Nexus Rlease Repository</name>
<url>http://localhost:8081/repository/maven-releases/</url>
</repository> <repository>
<id>snapshots</id>
<name>Nexus Snapshots Repository</name>
<url>http://localhost:8081/repository/maven-snapshots/</url>
</repository> <repository>
<id>thirdparty</id>
<name>Nexus 3rd Party Repository</name>
<url>http://localhost:8081/repository/maven-thirdparty/</url>
</repository> <repository>
<id>central</id>
<name>Nexus Central Repository</name>
<url>http://localhost:8081/repository/maven-central/</url>
</repository> </repositories>
</profile>
<!-- 可对maven中的项目进行代码质量管理
<profile>
<id>sonar</id> <activation>
<activeByDefault>true</activeByDefault>
</activation> <properties>
<sonar.jdbc.url>jdbc:oracle:thin:@127.0.0.1:1521/orcl</sonar.jdbc.url>
<sonar.jdbc.driver>oracle.jdbc.driver.OracleDriver</sonar.jdbc.driver>
<sonar.jdbc.username>admin</sonar.jdbc.username>
<sonar.jdbc.password>admin</sonar.jdbc.password>
<sonar.host.url>http://127.0.0.1:9000/</sonar.host.url>
</properties> </profile>
--> <activeProfiles>
<activeProfile>nexus</activeProfile>
</activeProfiles>
settings.xml
2. IDEA配置Maven
1. 打开 File-Settings,选择 Build,Execution,... - Build Tools - Maven
2. 设置 Maven安装位置(Maven home directory)
3. 在 New Module 弹出框中,添加Maven属性 archetypeCatelog = internal 可加快工程创建
四. 常用快捷键
Ctrl+Click 快速打开光标处的类或方法(跳转到定义处)
Ctrl+N 查找类
Ctrl+Shift+Alt+N 查找类中的方法或变量
Ctrl+Shift+F 在全局文件中查找字符串
Ctrl+Shift+R 通过名称打开文件
Double Shift 在项目的所有目录查找文件
Alt+Insert 可以生成构造器/Getter/Setter等
Alt+Enter 光标处,提供快速修复选择(光标位置不同,提供结果也会不一样)
ctrl + Alt + ← 回退到上一个操作的地方
ctrl + Alt + → 前进到下一个操作的地方
IntelliJ IDEA 使用经验总结的更多相关文章
- IntelliJ IDEA 下的版本控制介绍
不管是个人开发或是团队开发,版本控制都是可以很好地被使用的,目前我找不到任何开发者不使用版本控制的理由.而且对于 IDE 来讲,集成版本控制的本身就是它最大的亮点之一,很多开发者也是为此而使用它. 在 ...
- intellij idea 13&14 插件推荐及快速上手建议
IntelliJIDEA插件安装 首页 > blog Tags : intellij IDEA插件安装 更新日期: 2015-04-29 IntelliJ IDEA插件下载地址: http:// ...
- 用IntelliJ IDEA创建Gradle项目简单入门
Gradle和Maven一样,是Java用得最多的构建工具之一,在Maven之前,解决jar包引用的问题真是令人抓狂,有了Maven后日子就好过起来了,而现在又有了Gradle,Maven有的功能它都 ...
- [转载]从MyEclipse到IntelliJ IDEA-让你摆脱鼠标,全键盘操作
从MyEclipse转战到IntelliJ IDEA的经历 注转载址:http://blog.csdn.net/luoweifu/article/details/13985835 我一个朋友写了一篇“ ...
- [收藏]IntelliJ Idea快捷键
Alt+回车 导入包,自动修正 Ctrl+N 查找类 Ctrl+Shift+N 查找文件 Ctrl+Alt+L 格式化代码 Ctrl+Alt+O 优化导入的类和包 Alt+Insert 生成代码(如g ...
- IntelliJ IDEA 内存优化最佳实践
本文作者在和同事的一次讨论中发现,对 IntelliJ IDEA 内存采用不同的设置方案,会对 IDE 的速度和响应能力产生不同的影响. Don't be a Scrooge and give you ...
- Intellij Idea 15 下新建 Hibernate 项目以及如何添加配置
1.说明:Idea 下,项目对应于 Eclipse 下的 workspace,Module 对应于 Eclipse 下的项目.Idea 下,新添加的项目既可以单独作为一个 Project,也可以作为一 ...
- 成吨提高开发效率:Intellij Shortcuts精简子集与思维模式
在线精简cheatsheet备查表:intellij.linesh.twGithub项目:intellij-mac-frequent-keymap Intellij的快捷键多而繁杂,从官方推荐的key ...
- intellij idea 15 修改基础配置加载路径
一.概述 intellij idea 15 默认配置的启动加载路径是"C:\Users\Administrator.IntelliJIdea15",这样会导致占用C盘的空间越来越多 ...
随机推荐
- Recursion-687. Longest Univalue Path
Given a binary tree, find the length of the longest path where each node in the path has the same va ...
- JS-DOM Element方法和属性
JS-DOM Element方法和属性 S-DOM Element方法和属性一,获取html元素1.getElementByID(id)通过对元素的ID访问,这是DOM一个基础的访问页面元素的方法.e ...
- 高仿IOS下拉刷新的粘虫效果
最近看需要做一款下拉刷新的效果,由于需要和Ios界面保持一致,所以这用安卓的方式实现了ios下的下拉刷新的粘虫效果. 最新的安卓手机版本的QQ也有这种类似的效果,就是拖动未读信息的那个红色圆圈,拖动近 ...
- How to manage IntelliJ IDEA projects under Version Control Systems
如何在版本控制系统中管理 IntelliJ IDEA 项目文件 IntelliJ IDEA 设置详细,功能强大.在实际工作中,我们有时会遇到跟同事共享项目文件的情况. 那么,有哪些项目文件应该加入到版 ...
- web.xml详细配置
1.启动一个WEB项目的时候,WEB容器会去读取它的配置文件web.xml,读取<listener>和<context-param>两个结点. 2.紧急着,容创建一个Servl ...
- Monkey捕获Crash原理
Android的RuntimeInit.commonInit中会设置UncaughtHandler ActivityManagerService(AMS)在执行handleApplicationCra ...
- Picasso加载网络图片失败,提示decodestream时返回null
最近遇到一个问题,项目用的图片加载框架是Picasso,网络加载框架是okhttp,项目在加载轮播图时有时可以正常加载,有时,会加载失败,提示decodestream时返回null. 首先,需要确定是 ...
- wordpress 后台404解决办法
1.vim /usr/local/nginx/conf/wordpress.conf2.rewrite /wp-admin$ $scheme://$host$uri/ permanent;3.ngni ...
- C++中class的类型转换重载
注:本文测试实例使用的编译器版本为clang-703.0.29. 我们已经习惯了基本数据类型的显式或隐示转换,如: ; float f = (float)a;float c = a; 其实通过oper ...
- docker容器网络通信原理分析(转)
概述 自从docker容器出现以来,容器的网络通信就一直是大家关注的焦点,也是生产环境的迫切需求.而容器的网络通信又可以分为两大方面:单主机容器上的相互通信和跨主机的容器相互通信.而本文将分别针对这两 ...