문제

This is the code that's generated through Content Assist for creating an anonymous-inner class

new ActionListener()
        {

            @Override
            public void actionPerformed(ActionEvent arg0)
            {
                // TODO Auto-generated method stub

            }
        };

It's a small thing, but I wanted to edit the template so that the //TODO message isn't there. I can't find it in templates, and I was wondering if there was another place to edit the generated code in Content Assist?

도움이 되었습니까?

해결책

The templates are in Window -> Preferences -> Java -> Code Style -> Code Templates. What you want to alter is in Code -> Method body.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top