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盘的空间越来越多 ...
随机推荐
- 程序媛计划——mysql索引
定义: 索引是一种单独的.物理的对数据库表中一列或多列的值进行排序的一种存储结构 #为字段创建索引 #在表中的字段中创建索引mysql> create index ind_score on ...
- django 自定义中间件 middleware
Django 中间件 Django中的中间件是一个轻量级.底层的插件系统,可以介入Django的请求和响应处理过程,修改Django的输入或输出.中间件的设计为开发者提供了一种无侵入式的开发方式,增强 ...
- jQuery基础笔记(5)
day56 参考:https://www.cnblogs.com/liwenzhou/p/8178806.html#autoid-1-9-5 文档处理 添加到指定元素内部的后面 $(A).append ...
- position:absolute元素 怎样居中
<div style = 'height:20px;position:absolute;z-index:9999;top:0;left:0;right:0;margin:auto;'> & ...
- Zookeeper原理分析之存储结构Snapshot
Zookeeper内存结构 Zookeeper数据在内存中的结构类似于linux的目录结构,DataTree代表这个目录结构, DataNode代表一个节点.DataTree默认初始化三个目录:&qu ...
- JavaWeb之Servlet中ServletConfig和ServletContext
[声明] 欢迎转载,但请保留文章原始出处→_→ 文章来源:http://www.cnblogs.com/smyhvae/p/4140877.html [正文] 一.ServletConfig:代表当前 ...
- Ubuntu软件更新时出错问题解决
apt-get instal update 提示:错误,无法解析域名等等之类的 网上解决办法一大堆,先别急着用网上的方法,来检查检查系统是否有网络连接 网络图标显示网络连接,等等,别被表面迷惑了,命令 ...
- mapreduce程序的按照key值从大到小降序排列
在近期的Hadoop的学习中,在学习mapreduce时遇到问题:让求所给数据的top10,们我们指导mapreduce中是有默认的排列机制的,是按照key的升序从大到小排列的 然而top10问题的求 ...
- 【xsy1232】Magic 最小割
题目大意:给你一个$n$个点,$m$条有向边的图,每个点有一个点权$a_i$,同时你可以用$b_i$的代价将$a_i$变为$0$ 另外你要付出$\sum\limits_{i=1}^n\max\limi ...
- Spring 事务传播行为实验
一.Propagation : key属性确定代理应该给哪个方法增加事务行为.这样的属性最重要的部份是传播行为.有以下选项可供使用: PROPAGATION_REQUIRED--支持当前事务,如果当前 ...