Skip to main content

Posts

Showing posts with the label Intellij

Git menu is not shown up in IntelliJ IDEA 2023.1.1 (Community Edition)

  Problem :  If you have upgraded your IntelliJ IDEA to IntelliJ IDEA 2023.1.1 (Community Edition), then most probably the Git menu will not be shown up. Solution : a) Your project is running in safe mode, you need to trust this project b) Try the new UI of IntelliJ like the following

Intellij : How to add @author comment to every new class

 Introduction In this tutorial, we will learn how to add @author comments to every new class that we create. We can achieve it using either of the following two solutions Solution 1:  Automatically add @author comments to every new class using Files and Code Templates Open File -> Settings -> Editor -> File and Code Templates -> Includes Click on Includes . Under File Header , enter the following comments text /**  * @author ${USER}  * @Date ${DATE}   */ Intellij - add @author comments Solution 2: Autocompletion of @author Open File  ->  Settings  ->  Editor  -> Live Templates Select Java and then click on + button In Abbreviation, enter @a In template text , enter the following comments           /**             * @author ${USER}             * @Date ${DATE}            */ In option , Expands with select SPACE Intellij - Autocompletion @author You can simply add the @author comments by typing @a and then click SPACE

Error: Could not find or load main class in IntelliJ IDE 2020.1.3

 Error Could not find or load main class in IntelliJ IDE 2020.1.3 Solution Step 1 Right-click on the source folder  src (Normal Java projects) java ( Java Maven project) scala (Scala Maven projects) Step 2 Select Mark Directory As Step 3 Select Sources Root IntelliJ Mark Directory as Sources Root Hope this post helps you to solve your problem.