Where is the code used in 'add sample code' stored?

已回答

(Java)

I want to remove or change 'Hello World' in the default main method, generated when 'add sample code' is selected at module creation. I've already looked in live templates and file/code templates but no mention of 'Hello World' exists. If somebody could tell me where the sample code is actually stored, then maybe I can alter it.

0

It is hardcoded in IntelliJ IDEA source code. Here is the feature request to extract it to templates: 
https://youtrack.jetbrains.com/issue/IDEA-305953

The following approaches can be utilized as an alternative:

0

请先登录再写评论。