Intellij的使用方法
来源:互联网 发布:临沂广电网络客服电话 编辑:程序博客网 时间:2024/05/29 10:40
Intellij快捷键(based on Mac OS X 10.5+ keymap)
搜索
double shift 全局万能搜索
command + F 本文件内查找
command + G 往下继续查找
command+shift+G 往上继续查找
command + R 本文件替换
command + shirt + F 更大范围查找
command + shirt + R 更大范围替换
command + shirt + F 万能搜索
command + o 找类
comand + shift + o 找文件
command + B 进入函数里面(ideavim :control + ])
commad + option + 左剪头 退出函数 (ideavim :control + O/T)
option + F7 搜索方法调用的地方
信息查看
command + F12 查看当前文件的类方法
command + 7 打开类结构窗口
command + 0,1……9 打开相应工具箱
command + shift + F7 高亮关键词
command + option + F7 展示方法demo
command + option + B 快速查看接口实现
代码构建
control + enter (command + N)快速添加构造函数、get/set函数、覆写等
option + enter 解决当前小灯泡
control + option + O 自动导包
shift + F6 重构-重命名
command + option + L 格式化
command + shirt + enter //for、if自动补全结构
command + option + T 用if else, try catch包裹选中代码
command + option + M 提取选中方法
编辑
command + shift + U统一改为大小写
command + D 复制当前行
command + delete 删除当前行
option + delete 删除代码开始前部分
command + Shirt + 上下 上下移动一行
tab 补全
option+上/下 选中
control + shift + J 合并到同一行
command + Z 撤销
command + shift + Z 取消撤销
command + G 跳转
注释
commadn + / 注释与反注释 //
command + shirt + / 注释与反注释 /* */
/** + 回车 快速生产函数、类注释
代码折叠
command+shift+ +/- 全部
command + +/- 当前代码块
command + shift +/- 折叠文件所有代码
文件切换
control + tab( command + E )切换最近文件
command + shirt + [/] tab切换
调试
control + R run
control + D debug
command + P显示使用的方法传入的参数信息
F9 跳到下一个断电
F8 下一行
F7 进入函数
option + F9 跳到断点处(一定要可以运行到的)
远程调试
1、登陆远端服务器,ps查看java进程是否含有相关信息(-agentlib:jdwp=transport=dt_socket,address=9128,server=y,suspend=n ),并记住端口和机器ip
2、设置IDE远程调试,并开启debug
远程调试原理:http://kyfxbl.iteye.com/blog/1697203
其他
commad + ' 打开IDE配置
安装插件的方法
double shift -> Install plugin from disk -> 选择插件安装文件
command +' -> 搜索plugins -> 搜索需要的插件
推荐插件
ideavim(http://kidneyball.iteye.com/blog/1828427
Maven Helper
lombok
快速生成代码
psvm + tab 生产main方法
sout + tab 生产print方法
GIT/SVN
command + T 更新
command + K 提交
command + shift + K push
1、拉取开发分支到本地,然后切换(默认是mastor,所以必须切换到分支上开发),进行开发
2、开发完成后,将远端的master分支合并到本开发分支
3、冲突解决可以使用sourceTree
常规设置及其问题
intellij 默认有个设置(一个类里面同一个包下面的类达到5个就会自动合并成xxx.xxx.*;)需去掉,把默认的5/3改成100好了。
http://blog.csdn.net/lizhaowei213/article/details/68951671
关闭自动保存(http://blog.csdn.net/wangjun5159/article/details/55223630)
http://blog.csdn.net/laiwenqiang/article/details/54095067
修改高亮颜色(http://blog.csdn.net/wskinght/article/details/43052407)
自动生成serialVersionUID(http://blog.csdn.net/arthur0088/article/details/17390515
多开设置 http://blog.csdn.net/u012050154/article/details/53535637
版本管理 http://blog.csdn.net/u013791374/article/details/52870303
https://teamtreehouse.com/community/invalid-vcs-root-mapping
无法new class文件 https://stackoverflow.com/questions/19384319/intellij-idea-dont-offer-new-class-for-creating
注释模版 http://blog.csdn.net/caroline_wendy/article/details/47271055
破解http://blog.csdn.net/nishiwodebocai21/article/details/71359619?fps=1&locationNum=10
未完待续
阅读全文
0 0
- Intellij的使用方法
- Intellij IDEA调试区工具的使用方法
- intellij idea使用方法---快捷键
- IntelliJ IDEA 开发web项目的一些设置及使用方法
- Java开发工具IntelliJ IDEA本地历史记录的使用方法
- 详述 IntelliJ IDEA 插件的安装及使用方法
- IntelliJ IDEA CE Maven 使用方法
- IntelliJ IDEA使用技巧——插件的安装及使用方法
- IntelliJ IDEA 使用方法、目录与部署技巧
- IntelliJ IDEA软件中svn使用方法Downloads
- 关于"IntelliJ IDEA"中"IntelliJ"的发音
- 关于intellij 的jsunit
- Intellij IDEA 的使用
- Intellij快捷键的使用
- Intellij IDEA 的使用
- Intellij IDEA 的使用
- Intellij IDEA 的使用
- Intellij IDEA 的使用
- webpack打包 vuex ...mapMutations ,...mapGetters报错解决
- itext7学习笔记——第2章
- JavaScript 注释
- 进程通信之管道
- python3.5 安装 pywin32模块
- Intellij的使用方法
- HDU 2084 数塔
- 部署lftp服务器、建立ftp虚拟用户
- Play framework自定义扩展JavaExtensions
- VS2015+OpenCV-2.4.10配置AR(增强现实)开发环境
- 第14期《成长之路》2017年8月刊
- 进程通信之共享内存
- OpenResty连接Redis
- 【JavaWeb】JSP运行原理和九大隐式对象