Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the shortcut keys for IDEA Mac

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the relevant knowledge of "what are the shortcut keys for IDEA Mac". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Intelligent hint

⌘-> command

⇧-> shift

⌥-> option

⬆-> up Arrow

⬇-> Down Arrow

⌃-> Control

Edit Shortcut description ⌘ + F in the current window to find ⌘ + ⇧ + F in the full project search ⌘ + ⇧ + ⌥ + N search class or variable F3 / ⇧ + F3 move to the next / previous match of the search results ⌘ + R replace ⌘ + ⇧ + R in the current window replace ⌘ + ⇧ + V in the whole project can insert the recently used clipboard content selection into the text ⌥ + ⇧ + Up/Down Move up / down one line ⌘ + ⇧ + Up/Down move up / down statement ⌘ + / comment-/ ⌘ + ⇧ + / comment-/ * * / ⇧ + Enter insert a new line down ⌘ + Enter insert a line ⌘ + ⇧ + F7 highlight all the text Press Esc highlight to disappear ⌘ + W to select the word and then the function ⌘ + ⇧ + W to deselect the word where the cursor is located ⌥ + Left/Right move the cursor to the front / back word ⌥ + Backspace move the cursor to the front / back word delete ⌘ + [/] move to the preceding / descendant code block ⌘ + ⇧ + Left/Right/ [/] Select the code within the jump range ⌘ + YUnix delete line ⌘ + D copy line ⌘ + ⇧ + U case Transforming ⌘ + ⌥ + V can introduce variables. For example: new String () Automatically import the variable definition ⌘ + ⌥ + T to wrap the code in a block, for example: try/catch ⌘ + ⌥ + L format code ⌘ + ⌥ + I automatically indents the selected code This function can also work when editing JSP files: ⌘ + ⌥ + O optimizes imported classes and packages ⌘ + + /-current method expands, collapses ⌘ + ⇧ + + /-all expands, collapses and reconstructs shortcuts description ⌘ + ⇧ + ⌥ + T refactoring function large summary shortcut ⇧ + F6 rename ⌘ + ⌥ + V extraction variable ⌘ + O rewrite parent method code generation shortcut key description fori generation cycle soutSystem.out.println () ⌘ + J can view all code templates ⌘ + ⌥ + J automatically complete the characters (parentheses, semicolons) at the end of ⌘ + ⇧ + Enter with dynamic templates, for example, you can also automatically fill in {} curly braces after typing if/for. ⌥ + Enter import package for quick repair

Suffix automatic completion function (Postfix Completion)

To enter for (User user: users), simply enter user.for + Tab.

To enter Date birthday = user.getBirthday (); just type user.getBirthday (). Var + Tab. | |

File shortcuts description ⌘ + Delete delete files ⌃ + ⌥ + N new files F5 replication class F6 mobile class toolbar shortcut keys description ⌃ + H open class hierarchy window, view class inheritance relationship ⌘ + 1 quickly open or hide the engineering panel ⇧ + Esc can not only move the focus to the editor And you can also hide the current (or last active) tool window to find location shortcuts. ⌘ + F7 can query the reference of the current element in the current file, and then press F3 to select ⌥ + F7 to find the location of a class, method or variable used in the whole project. ⇧ + ⇧ Search Everywhere function, you can search for anything in a pop-up box Including classes, resources, configuration items, Methods, etc. ⌘ + N Quick Open a class ⌘ + ⇧ + N Quick Open File or Resource ⌘ + B / ⌘ + Click Quick Open the class or method at the cursor (jump to definition) ⌘ + ⌥ + B jump to the method implementation F2 / ⇧ + F2 move to the error code ⌘ + U go to the parent class ⌘ + G location line ⌘ + ⌥ + left/right return to the nearest location ⌘ + E where you browsed last time File ⌘ + ⇧ + E recently changed file ⌥ + ⇧ + C recent change ⌥ + F1 search code location ⌘ + ⌥ + F7 display usage ⌘ + I implementation method ⌘ + ⌥ + N inline method related shortcut keys description ⌘ + P can display parameter information ⌘ + F12 view the structure debugging section of the current file, Compilation shortcut description: ⌘ + F2 stop ⌥ + ⇧ + F9 Select Debug ⌥ + ⇧ + F10 Select Run ⌘ + ⇧ + F9 compile ⌘ + ⇧ + F10 run ⌘ + ⇧ + F8 View breakpoint F7 step Step intoF8 step into Step overF9 recovery program Continue ⇧ + F7 Smart step into Step overF9 ⇧ + F8 step out ⌥ + F8 Force step into ⌥ + F9 run to cursor ⌥ + F10 locate breakpoint + + F9 forced step into ⌥ + F9 run Line to cursor ⌘ + F8 switch line breakpoint ⌘ + F9 build project ⌘ ⇧ + C replication path ⌘ + ⌥ + ⇧ + C replication reference You must choose the class name ⌘ + ⌥ + Y synchronous ⌘ + ~ Fast switching scheme (interface appearance, code style, Menu such as shortcut key mapping, etc.) ⇧ + F12 restore default layout ⌘ + ⇧ + F12 hide / restore all windows ⌘ + F4 close ⌘ + ⇧ + F4 close the active tab ⌘ + Tab to the next splitter ⌘ + ⇧ + Tab go to the previous splitter switch window shortcut key description ⌘ + 1 project structure ⌘ + 2 favorite ⌘ + 3 search results ⌘ + 4 run ⌘ + 5 debug ⌘ + 6TODO ⌘ + 7 structure ⌃ + Tab toggles tab other shortcut keys indicate that ⌘ + ⇧ + A can find all commands And each command followed by its shortcut key in any menu or display window, you can directly enter the words you are looking for, idea will automatically filter for you. Test shortcuts description ⌘ + ⌥ + T to create a unit test case "what are the shortcuts in IDEA Mac" is introduced here, thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report