How does IDEA annotate class method and the like like Eclipse?

idea is strong, but why does it feel so difficult if I want to perfect a set of canonical comments on idea? I watched
several times on the Internet, basically using live template to make comments, but the user experience is not friendly. I want to implement Alibaba"s P3C annotation template standard on IDEA. What should I do?
https://github.com/alibaba/p3c

question summary: how to get idea to complete the annotation template of P3C, and the final effect can be consistent with that in eclipse?

< hr >

the difficulties encountered in use at present are:

  1. it is troublesome to use live template completely. Every time you create a new class, you have to manually enter a keyword to trigger
  2. .
  3. when using live template to generate method comments, using the built-in method parameter return of live template does not work, and I don"t know the specific reason.
  4. eclipse supports @ throws Exception,. I don"t know how idea should complete this annotation?
  5. wants to replace live template, with file and code templates but doesn"t know how to comment on method
  6. I don"t know how to annotate Synchronize code specifications between multiple idea
It is true that
searched the Internet for a long time and came to codeshelper to ask questions and ask for help without finding a solution. I don"t know if you have any good idea. After all, the number of idea users is already so large. I believe there must be friends who encounter similar problems.
20181017 update: @ A Snake is correct. There are so-called "detailed" tutorial methods on the Internet, but they can"t solve my five difficulties.

so what does this have to do with Python? why hang a Python tag?


according to my exploration and pondering for so many years, this really belongs to a place that idea does not do well, and there is really no particularly convenient and simple method. I remember that the better thing is to use groovy expressions, and the support does not seem to be very good. I personally summed up a set of methods, although they can not be put in place in one step, but it is also the most suitable solution for me at present, taking up a pit first. Let's talk about the steps tomorrow


the best solution is to use Eclipse Code Formatter, the IDEA plug-in

.
Menu