How I can make method public static void main?


How I can make a method with some annotation runnable (public static void)? Like a `@Test` annotation, which Idea allows to run directly 

1 comment
Comment actions Permalink

By making a method, you mean adding a new method programmatically using PSI? If so, please refer to Modifying the PSI section in our docs.


Please sign in to leave a comment.