This feature is called Hippie completion and is available via Alt+/. However, sometimes you may need a more trivial, yet flexible logic that would suggest the words used earlier in the current file or even project regardless to their context. All these features are based on the actual understanding of the code structure. IntelliJ IDEA provides Basic completion via Ctrl+Space, Smart type-matching completion via Ctrl+Shift+Space, and Statement completion via Ctrl+Shift+Enter. If you prefer to select words according to CamelCase, for example, instead of selecting the whole word, select a part of it, you can enable this in Editor | General | Smart Keys of the Settings dialog. CamelHumpsīy default, when you select anything in the editor, IntelliJ IDEA isn’t sensitive to the case of the words. If you know the Ctrl+Shift+F7 shortcut and don’t like the highlighting in the editor to appear and disappear each time you move the caret, you can turn off the Usages of element at caret option. Talking about the defaults that you may want to change after learning IntelliJ IDEA better, we can’t miss the Highlight on Caret Movement setting in the Editor | Code Editing. Disable highlighting usages of element at caret This makes sense if you want the code completion popup to show up only when you explicitly call it. Here, you can also turn off the Show suggestions as you type option. This strategy can be changed in the Settings dialog ( Ctrl+Alt+S) on the Editor | General | Code Completion page, where you can make the IDE sensitive to all letters. Code completion case sensitivityīy default IntelliJ IDEA code completion case sensitivity only affects the first letter you type. If you don’t need the full info, then use the Type Info action instead: it only shows the type of the selected expression, but doesn't take up that much of screen space. Press Ctrl+Q to invoke it and you will see a popup with these details. If you want more information about a symbol at caret, for example, where it comes from or what its type is, the Quick Documentation is your friend. If you’re relatively new to IntelliJ IDEA, we recommend that you read the Discover IntelliJ IDEA guide before delving into this one. This guide targets IntelliJ IDEA users who are already familiar with its basic features and would like to learn more.
0 Comments
Leave a Reply. |