4. Open a class : cmd + o (Windows / Linux:ctrl + n)。
5. Open any file :cmd + shift + o (Windows / Linux:ctrl + shift + n)。
6. Open symbol : cmd + option + o (Windows / Linux:alt + shift + n)。
7. Go to implementation : cmd + option + b (Windows / Linux:ctrl + alt + b)。
假設(shè)您有一個(gè)界面,通過(guò)單擊接口的名稱,然后單擊 Go to implementation 的快捷方式,您將被重定向到實(shí)現(xiàn)該接口的類。
8. Go to declaration : cmd + b (Windows / Linux:ctrl + b)。
它允許您快速檢查并轉(zhuǎn)到類、方法或變量的聲明。
9. Go to type declaration : control + shift + b(Windows / Linux:ctrl + shift + b)。
假設(shè)您如此定義:
Employee employee = new Employee(“Michal”);
當(dāng)你的插入符號(hào)employee并單擊快捷方式時(shí),將會(huì)被重定向到Employee類。
10. Go to super : cmd + u(Windows / Linux:ctrl + u)。
例如,您重寫(xiě)一些方法。當(dāng)你在方法名稱插入符號(hào),并單擊轉(zhuǎn)到 Go to super 快捷方式,您將被重定向到父方法。
11.