1.IDEA配置Tomcat
1.点击Run—EDit Configurations…
2.点击左侧“+”号,找到Tomcat Server—Local(若是没有找到Tomcat Server 可以点击最后一行 34 items more)
3.在Tomcat Server -> Unnamed -> Server -> Application server项目下,点击 Configuration ,找到本地 Tomcat 服务器,再点击 OK按钮。
4.如果tomcat没有on frame deactivation ,说明没有热部署。点击Deployment—加号–Artifact…加入热部署
2.IDEA配置JDK
1、点击File -->Project Structure;
2、点击左侧标签页SDKs选项,再点击左上角“+”,选择JDK;
3、在弹出框选择JDK安装路径,点击OK即可配置成功。
4.下图表示已配置完成
2.idea配置Maven
1、点击File -->-Settings
本地的设置,maven文件夹目录,取的是idea中的。按照上图一直无法下载
4.IDRA配置SVN
1.点击File->Settings
需要注意的是如果在svn客户端安装路径bin目录下找不到svn.exe,代表安装svn客户端的时候,没有选择指定安装项,重新安装svn客户端,选择上安装项,就会出现svn.exe
2.使用svn,点击VCS->Checkout from Version Control->Subversion,如下图所示:
(也可File–close Project退回主页面,进行选择)
3.输入svn地址即可正常使用
svn其他操作具体含义
svn提交时,经常会有很多不需要提交的文件,将不需要提交的后缀,填入箭头所指位置即可
常用快捷键
执行 (run) alt+r
提示补全 (Class Name Completion) alt+/
单行注释 ctrl + /
多行注释 ctrl + shift + /
向下复制一行 (Duplicate Lines) ctrl+alt+down
删除一行或选中行 (delete line) ctrl+d
向下移动行 (move statement down) alt+down
向上移动行 (move statement up) alt+up
向下开始新的一行 (start new line) shift+enter
向上开始新的一行 (Start New Line before current) ctrl+shift+enter
如何查看源码 (class)
ctrl + 选中指定的结构
或
ctrl + shift + t
万能解错 / 生成返回值变量 alt + enter
退回到前一个编辑的页面 (back) alt + left
进入到下一个编辑的页面 ( 针对于上条 ) (forward) alt + right
查看继承关系 (type hierarchy) F4
格式化代码 (reformat code) ctrl+shift+F
提示方法参数类型 (Parameter Info) ctrl+alt+/
复制代码 ctrl + c
撤销 ctrl + z
反撤销 ctrl + y
剪切 ctrl + x
粘贴 ctrl + v
保存 ctrl + s
全选 ctrl + a
选中数行,整体往后移动 tab
选中数行,整体往前移动 shift + tab
查看类的结构:类似于 eclipse 的 outline ctrl+o
重构: 修改变量名与方法名 (rename) alt+shift+r
大写转小写 / 小写转大写 (toggle case) ctrl+shift+y
生成构造器/get/set/toString alt +shift + s
查看文档说明(quick documentation) F2
收起所有的方法(collapse all) alt + shift + c
打开所有方法(expand all) alt+shift+x
打开代码所在硬盘文件夹(show in explorer) ctrl+shift+x
生成 try-catch 等(surround with) alt+shift+z
局部变量抽取为成员变量(introduce field) alt+shift+f
查找/替换(当前) ctrl+f
查找(全局) ctrl+h
查找文件 double Shift
查看类的继承结构图(Show UML Diagram) ctrl + shift + u
查看方法的多层重写结构(method hierarchy) ctrl+alt+h
添加到收藏(add to favorites) ctrl+alt+f
抽取方法(Extract Method) alt+shift+m
打开最近修改的文件(Recently Files) ctrl+E
关闭当前打开的代码栏(close) ctrl + w
关闭打开的所有代码栏(close all) ctrl + shift + w
快速搜索类中的错误(next highlighted error) ctrl + shift + q
选择要粘贴的内容(Show in Explorer) ctrl+shift+v
查找方法在哪里被调用(Call Hierarchy) ctrl+shift+h