首页  

IDEA 源码阅读技巧     所属分类 idea 浏览量 652
变量上面会显示  使用次数 ,点击显示使用列表 ,再点击 跳转到相应的地方

9 usages 
public static final String MSG = "hello";


查看快捷键  settings / keymap

前进后退  navigate   /  back forward
展示前进后退按钮
view / appearance /  勾上 toolbar   


右键
find usages
find in files


查看 接口实现类 ,接口类 左边 绿色箭头

查看子类  向下的箭头
子类查看 父类  向上的箭头


shift 连按两次  search everywhere
navigate / search everywhere
右上角 搜索按钮

view / tool windows / 
可切换到各种窗口

左下角 窗口小图标 也可切换各种窗口

command + e  
最近文件窗口
search everywhere  / action 
搜索 files   
recent files


project structure git TODO
hierarchy maven build
commit run debug problems 
services  ant bookmarks
dependencies find  learn  terminal  
eventLog

view 下有很多有用的菜单
recent files 
recent changed files 
recent locations
recent changes



查看类的结构
project 窗口选中类
然后 切换到 structure 窗口  
sidebar 有  structure 标签页
快捷键 command + 7
左下角有个小按钮  放上去 会出菜单 structure
点击该按钮可以 显示隐藏 sidebar

查看类的继承体系
project 窗口选中类
然后 切换到 hierarchy 窗口
sidebar 中没有 hierarchy 标签页的话 ,可使用菜单
navigate / type hierarchy
或者 control + H


查看当前方法的调用链
structure 窗口 选中方法
control + alt + H
或者菜单
navigate / call hierarchy
当前方法调用了哪些方法
哪些方法调用了当前方法

navigate / method hierarchy  (作用?)


debug
ps aux|grep com.example.dyyx.hello.Hello
有个拍照的图标可以 获取线程堆栈
堆栈信息可以 保存到文件



例子项目
https://gitee.com/dyyx/hellocode/tree/master/demo/scala/scalademo


scala sbt 项目增加子项目 IDEA 使用技巧 IDEA 远程调试 idea debug 技巧 IDEA 常用设置

上一篇     下一篇
akka actor demo

akka http rest api demo

c语言 hello world 高逼格版本

Scala 实用代码

IntelliJ IDEA 介绍

MAC 安装 wget