0

Auto generation/completion for comments is not working in my eclipse Photon workspace. At the moment I have resetted the code templates to defaults, which didn't help. To illustrate my problem consider a method that was just written and should now get documented:

/**
public FileEntry removeFileEntry(int index) {
    return files.remove(index);
}

So after typing in the beginning of a docstring comment, one should be able to let e.g. the '@return' tag generate automatically and the comment should be closed automatically as well. However, I'm getting this result:

/**
 * 
public FileEntry removeFileEntry(int index) {
    return files.remove(index);
}

So somehow my auto-completion stopped working, and I'm not able to relate this problem to any specific settings I changed since it last worked.

Can you help me with getting automatic/semi-automatic comment generation working again?

Using "Source -> Generate Element Comment" is working as expected. The result is:

/**
 * @param index
 * @return
 */
public FileEntry removeFileEntry(int index) {
    return files.remove(index);
}
Der_Reparator
  • 86
  • 1
  • 9
  • is it easy to open your project in a new workspace to see if that helps? – Nicholas DiPiazza Oct 22 '18 at 14:14
  • @NicholasDiPiazza thanks for your comment, after creating a new workspace and 'copying' the project via "File -> Open Projects from File System..." The auto-completion worked correctly after pressing Enter. – Der_Reparator Oct 22 '18 at 14:20

0 Answers0