Search code examples
netbeans-8

Can NetBeans autoreplace text as I type?


I have Gedit set up with snippets, so that when I type XXXTab it automatically replaces xxx with exit(__FILE__ . ': ' . __LINE__);. Is there any way to achive the same effect in NetBeans? Searching for autocorrect or ways of replacing text finds me other, unrelated features.


Solution

  • Yes it has , but you should do your owns, there is someones that are already built inside netbeans, go to Tools - Options - Code Templates

    There you can edit your owns or just use the default ones, this is the window

    enter image description here

    if i write Pfm and press tab it auto completes

    enter image description here

    enter image description here

    Side note:

    if you want to autoComplete while you are writing just go to the left tab Code Completion

    enter image description here