---
title: "eclipse快捷键汇总（不断更新添加）"
author: "yl_fighting"
date: "2012-12-24T17:22:56Z"
tags: ["Eclipse", "Java"]
categories: ["移动开发"]
slug: "eclipse"
draft: false
lastmod: "2013-03-11T14:23:35Z"
id: 1753249
url: "https://yl-fighting.iteye.com/blog/1753249"
---

1、代码块折叠：

代码折叠：Ctrl+Shift+(小键盘的/号)

打开：Ctrl+Shift+(小键盘的\*号)

笔记本没小键盘，快捷键：

折叠：Ctrl+Shift+-

打开：Ctrl+Shift+=

 

2、添加注释：Alt + Shift + J

 

3、Format：Ctrl + Shift + F

 

4、重命名：Alt + Shift + R

 

5、括号匹配：Ctrl + Shift + P

 

6、查找下一个：Ctrl + K

 

7、类的层级结构：Ctrl + T

 

8、查找类：Ctrl + Shift + T

 

9、查找资源（jsp/xml/property...）：Ctrl + Shift + R

 

10、查找：Ctrl + H

 

11、查找类中的某个方法：Ctrl + O（对于代码几万行的比较大的类很好用）