Eclipse Keyboard Shortcuts

Is there a way to change a shortcut in Eclipse which, when I click this shortcut, Eclipse will write some line of code? For example, I press Ctrl+ Shift+ Pif that Eclipse might write <p></p>?

thank

+3
source share
2 answers

Look at template support.

Window β†’ Settings β†’ Java β†’ Editor β†’ Templates

Here's an article describing custom eclipse patterns .

+5
source

, , , aioobe, . - par Ctrl + Space, Eclipse / ( ). , Eclipse , , .

, HTML ( XML-) Eclipse , <p> . - Shift + < ( , , ). , .

+1

Source: https://habr.com/ru/post/1796005/


All Articles