4/1/2024 0 Comments Intellij comment shortcutType sou and press Tab, It will generate System.out. Type sout and press Tab, it will generate () On MAC you can do sout + return or ⌘+j (cmd+j) opens live template suggestions, enter sout to choose () Now, to change it to “syso” instead of “sout”, in the Live Templates option, theres a list of tons of options checked, go to “other” and expand it, there you wil find “sout”, just rename it to “syso” and hit aply. Now you can hit ctrl + spacebar and expand the live templates. We saw how to use Springs annotation processor to generate the metadata from custom classes. In the upper part there’s an option that says “By default expand with TAB” (TAB is the default), choose “Custom” and then hit “change” and add the keymap “ctrl+spacebar” to the option “Expand Live Template/Emmet Abbreviation”. In this article, we looked at how IntelliJ uses the configuration property metadata to provide help with our properties files. Open up Settings (By default is Alt + Ctrl + S) and search for Live Templates. If you want to know all the shortcut in intellij hit Ctrl + J. Create new one with syso as abbreviation and ($END$) as Template text. Soutv: Prints a value to System.out ("$EXPR_COPY$ = " + $EXPR$) Soutp: Prints method parameter names and values to System.out ($FORMAT$) Soutm: Prints current class and method names to System.out ("$CLASS_NAME$.$METHOD_NAME$")
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |