为了正常的体验网站,请在浏览器设置里面开启Javascript功能!
首页 > idea快捷键(思想快捷键)

idea快捷键(思想快捷键)

2018-03-09 14页 doc 43KB 22阅读

用户头像

is_266065

暂无简介

举报
idea快捷键(思想快捷键)idea快捷键(思想快捷键) idea快捷键(思想快捷键) Today, the Internet has collected some IDEA using skills, and share with you! Shortcut key: if you want to change the shortcut key (setting->keymap). 1. Ctrl + Space Complete the automatic input of class, method, and variable name....
idea快捷键(思想快捷键)
idea快捷键(思想快捷键) idea快捷键(思想快捷键) Today, the Internet has collected some IDEA using skills, and share with you! Shortcut key: if you want to change the shortcut key (setting->keymap). 1. Ctrl + Space Complete the automatic input of class, method, and variable name. This shortcut key is my most frequently used shortcut key. It can automatically input the class, method and variable name. It is very convenient 2. Ctrl + N (Ctrl + Shift + N) Jump to the specified java file (other files). This function is very convenient. At least I don't have to find the class files and JSP files I want to edit every time in a long list of files 3. Ctrl + B Jump to the definition, this does not need to say more, as if a IDE will provide functionality 4. Ctrl + Alt + T * to focus on selected lines of code (including if, while, try * catch) this function is also very convenient, I wanted to do: to write if-else code, then adjust the indentation, but also pay attention to parentheses match, now use this function to do, save more (but let me become more and more lazy) 5. Ctrl + Alt + B Jump to the implementation of the method, this is also a very common function, not to mention. 6. Ctrl + W To select a word, the shortcut key function in IDEA is to select the word at the cursor's character, and then select the source Extended area of code. For example, the following statement on java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat ("yyyy-MM-dd HH:mm"); the position of the cursor when the string in double quotes in, will first check this string, then the expression on the right-hand side, then the whole sentence. I usually use it when I'm modifying the code It's convenient to choose those long compound expressions:) 7. Shift + F1 Display the specified Java docs in the browser, and this should be the function of almost all Java IDE, not to mention. 8. Ctrl + Q Java docs this function is very convenient, because sometimes just forget a parameter to write your own method in meaning in editor window, at this time also don't want to answer a browser to view the Java doc, then the function of the benefits is manifested 9. Ctrl + The statement notes / uncomment the specified, this function is as a function of PB, it can be annotated and uncomment your choice of words (using the comment symbol "/"), you can also use Ctrl + + / Shift for multiple statements notes (i.e. using multi line comment symbol "* / / *...") 10. F2/Shift + F2 Jump to the next / last error statement, IDEA provides a convenient jump function between the error statements, and you use this shortcut to quickly jump between the wrong statements. 11. Shift + F6 Provide renaming of methods and variables, and I use less Refector functionality provided by IDEA, which is what I use the most. There's nothing to say about this function. It's really convenient. Just give it a try. 12. Ctrl + Alt + L Format the selected code according to the template, and format your Java code in the format set in the template, but unfortunately it is only valid for the java file 13. Ctrl + Alt + I The selected code is automatically indented, which functions when editing the JSP file and provides a complement to the formatting of the code above. 14. Ctrl + Alt + O Optimize import automatically remove useless import statements, pretty good function. 15. + / Ctrl Jump to the end of the code block / start, this function VI also has, it is also a very common code editing function. 16.Ctrl+E You can display a list of recently edited files 17.Shift+Click You can close the file 18.Ctrl+Shift+Backspace You can jump to where you edited last time 19.Ctrl+F12 You can display the structure of the current file 20.Ctrl+F7 You can query the reference of the current element in the current file, and then press F3 to choose 21.Ctrl+Shift+N You can quickly open files 22.Alt+Q You can see the declaration of the current method 23.Ctrl+P You can display parameter information 25.Alt+Insert You can generate constructors, /Getter/Setter, and so on 26.Ctrl+Alt+V Variables can be introduced. For example, the SQL in parentheses is assigned a variable 27.Alt+Up and Alt+Down Can move quickly between methods The following one is not very useful 28.Alt+Enter You can get some Intention Action, for example, will be changed to "equals" = = "()" 29.Ctrl+Shift+Alt+N You can quickly open symbols 30.Ctrl+Shift+Space Smart hints can be given in many cases 31.Alt+F3 Can quickly find 32.Ctrl+O You can override the methods of the parent class 33.Ctrl+Alt+Space Is the class name automatically completed 34. Ctrl+J Live Templates! 35.Ctrl+Shift+F7 You can highlight the use of the current element in the current file 30.Ctrl+Alt+Up /Ctrl+Alt+Down You can quickly jump search results 31.Ctrl+Shift+J Two lines can be integrated 32.Alt+F8 is the value of the calculated variable Ctrl+D copies the previous line or copies the selected ones Ctrl+Alt+L formatting code Alt+Shift+Insert column editing IntelliJ IDEA usage skills: 1, when writing code, use Alt-Insert (Code|Generate...) You can create getter and setter methods for any field within the class. 2, right click on the breakpoint marker (in the text of the left column) to activate the quick menu, you can quickly set the enable/disable attribute breakpoint or the conditions for it. 3, a special variable in the CodeCompletion (code completion) property is that the activation Ctrl-Alt-Space can complete the class name in or not in the current file. If the class is not imported, the import flag is created automatically. 4, use the Ctrl-Shift-V shortcut key to insert the recently used clipboard content into the text. When used, the system pops up a dialog box containing clip content, from which you can select the part you want to paste. 5, the use of CodeCompletion (code completion) attributes, you can quickly complete different statements in the code, the method is to first type a class name of the first few letters, and then use Ctrl-Space complete full name. If there are a number of options, they will be listed in the info list. 6. Use Ctrl-/ and Ctrl-Shift-/ to annotate / comment code lines and blocks of code. With the comment marker ("- / / /...") Comment / comment the current line or the selected block of code. While Ctrl-Shift-/ can be used to block the comment mark (/ *... * ") of the selected block surrounded. To annotate a block of code, press Ctrl-Shift-/ anywhere in the block. 7, press Alt-Q (View|Context Info), you can see the current method declaration without the need to move code. Two times a row will show the class name that is currently edited. 8, use Refactor|Copy Class... You can create a copy of the selected class". This is useful, for example, when you want to create a class where most of the content is the same as the existing class. 9 in the editor, Ctrl-D can copy the selected block or the current row without the selected block. 10, the Ctrl-W (select word) function in the editor is to select the word at the beginning of the word, and then select the extended area of the source code. For example, first select a method name, then call the expression of this method, then the entire statement, then block, and so on. 11, if you don't want the details of the event indicates "bright ball" icon in the editor on the show, by opening a list of all events in the Alt-Enter key combination and then use the mouse to click on it can put the event text attachment bright ball set to non active state. Then there will be no bright ball indicating the special event, but you can still use the Alt-Enter shortcut key. 12, when using CodeCompletion, can use the comma (.) character, comma (,) a semicolon (;), spaces and other character input current highlight part of the pop-up list. The selected name is automatically entered into the editor as input characters are entered. 13, using the Escape key in any tool window can move the focus to the editor. Shift-Escape not only moves the focus to the editor, but also hides the current (or last active) tool window. The F12 key moves the focus from the editor to the recently used tool window. 14, an easy way to see any expression value while debugging a program is to select text in the editor (you can do this more effectively by pressing the Ctrl-W key several times), and then press Alt-F8. 15. To open the class or method used by the editor to remove the characters, press the browser for the Java document and press Shift-F1 (External JavaDoc on the right-click menu). To use this function to add the browser path set in the "General" option (Options | IDE Settings), in addition to the Java document created added to the project (File | Project Properties). 16, Ctrl-F12 (View File Structure Popup |) keys you can quickly navigate in the current edit file. At this point, it displays a list of the members of the current class. Select an element to navigate, then press the Enter key or the F4 key. To easily locate an entry in a list, simply type in its name. 17. In the code, place the cursor on the marker or its check point, and then press Alt-F7 (the Find Usages in the right-click menu) You will quickly find the location of a class, method, or variable used throughout the project. 18, according to Ctrl-N (Go to Class |...) By typing the class name, you can quickly open any class in the editor. Select the class from the drop-down list displayed. The same way you can use Ctrl-Shift-N (Go to File |...) Open non Java files in your project. 19, to navigate the declarations of classes, methods, or variables used in some parts of the code, without putting the cursor on the view item, and then pressing Ctrl-B. You can also switch to the declaration by clicking the Ctrl button and clicking the mouse button at the view point. 20. Place the cursor on the view point and press Ctrl-Alt-B to navigate to the implementation code of an abstract method. 21, depending on the inheritance hierarchy of the selected class, press Ctrl-H (Browse, Type, Hierarchy). You can also activate the inheritance relationship view in the editor to see the inheritance relationship of the current edit class. 22, the use of Ctrl-Shift-F7 (Search Highlight Usages in File |) can be highlighted using a fast local variable in the current file. Press Escape to clear the highlight. 23, Alt-F3 (Search Incremental Search |) to achieve fast search function in the editor. In the "Search for:" tooltip, enter characters, and use the arrow keys to look forward and backward. Press Escape to exit. 24, press the Ctrl-J combination key to execute some Live Template abbreviations that you can't remember. For example, the key "it" and then press Ctrl-J to see what happens. 25, Introduce Variable integration helps you simplify complex declarations in code. For example, in the following code snippet, select an expression in the code: 然后按ctrl-alt-v(重构|引入变量)就会出现下面的结果: 26、ctrl-shift-j快捷键把两行合成一行并把不必要的空格去掉以 匹配你的代码格式。 27、Ctrl Shift键(去|最后编辑的位置)让你调转到代码中所做改 变的最后一个地方。 多按几次Ctrl Shift键查看更深的修改历史。 28、用工具|格式化代码…根据你的代码样式参考(查看选项| IDE 设置|代码风格)格式化代码。 使用工具|优化进口…可以根据设置(查看选项| IDE设置|代码风格 |进口)自动”优化”进口(清除无用的进口等)。 29、使用理念的生活让你在眨眼间创建许多典型代码|比如模板模板, 在一个方法里键入 再按选项卡键看有什么事情发生了。 用选项卡键在不同的模板域内移动查看|生活模板获取更多的细节选 项。 30、要查看一个文件中修改的本地历史, 激活右键菜单里的本地风投|显示历史…也许你可以导航不同的文件版本,看看它们的不同之处再回滚到以前的任何一个版本吧。 使用同样的右键菜单条目还可以看到一个目录里修改的历史。有了这个特性你就不会丢失任何代码了。 31、如果要了解主菜单里每一个条目的用途,把鼠标指针移到菜单条目上再应用程序框架的底部的状态栏里就会显示它们的一些简短描述,也许会对你有帮助。 32、要在编辑器里显示方法间的分隔线,打开选项| IDE设置|编辑器,选中”显示的方法检查盒分离器”(复选框)。 33、用ALT上升和向下键可以在编辑器里不同的方法之间快速移动。 34、用F2 / shift-f2键在高亮显示的语法错误间跳转。 用Ctrl Alt向下/ Ctrl Alt了快捷键则可以在编译器错误信息或者查找操作结果间跳转。 35、通过按Ctrl-O(代码|重写方法可以很容易地重载基本类地方法…)。 要完成当前类实现的(或者抽象基本类的)接口的方法,就使用Ctrl-I(代码|实现方法…)。 36、如果光标置于一个方法调用的括号间,按Ctrl-P会显示一个可 用参数的列表。 37、要快速查看编辑器脱字符处使用的类或方法的java文档,按CTRL 和Q键可(在弹出菜单的显示快速javadoc里)即可。 (38、像CTRL和Q键可显示快速javadoc显示简洁java文档),Ctrl-P (显示参数信息显示参数信息),Ctrl-B(去申报跳转到声明), shift-F1(外部javadoc外部java文档)以及其它一些快捷键不仅 可以在编辑器里使用,也可以应用在代码完成右键列表里。 39、ctrl-e(查看|最近的文件)弹出最近访问的文件右键列表选中 文件按进入键打开。 40、在理念中可以很容易地对你的类,方法以及变量进行重命名并在 所有使用到它们的地方自动更正。 试一下,把编辑器脱字符置于任何一个变量名字上然后按shift-f6 (重构|重命名…)在对话框里键入要显示地新名字再按进入。 You'll browse to all places that use this variable, and then press the Do Refactor button to end the rename operation. 41, fast in any view (Project, View, engineering view, Structure, View, structure view, or other view) The editing part (class file, method or field), according to Alt-F1 (View | Select in...). 42, when you instantiate a known type object after the "new" character, you might use the SmartType code to complete this feature. For example, type Press Ctrl-Shift-Space again: 43, through the use of SmartType code to complete, C teach Gf: industry: such as education for network interface in IDEA \ create the anonymous implementation is very easy, and for some listener (listener), you can type Component component; Component.addMouseListener ( New ); Then press Ctrl-Shift-Space to see what's happening. 44, when you need to set the value of an expression of a given type, it is also helpful to do it in SmartType code. For example, type String s = () Press Ctrl-Shift-Space again to see what happens. In 45, all view provides quick function: in the tree just type character can quickly locate an entry. 46, when you want to capture abnormal code fragment, the fragment is selected in the editor, press Ctrl-Alt-T (Code | Surround with...) Then select "try/catch"". It automatically generates capture blocks for all exceptions thrown in the code snippet. In the Options File Templates Code tab | | you can also customize the template generated catch block. You can surround other structures with other items in the list. 47, when the code is complete, With the Tab key, you can enter the highlighted part of the pop-up list. Unlike accepting the input with the Enter key, the selected name overrides the other part of the character's right name. This is especially useful when replacing one with a method or variable name. 48, when you declare a variable, the code completion feature will show you a suggested name. For example, start typing private FileOutputStream and press Ctrl-Space In the Options IDE Setting Code Style | | can also as a local variable,
/
本文档为【idea快捷键(思想快捷键)】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。 本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。 网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。

历史搜索

    清空历史搜索