Hiển thị các bài đăng có nhãn IDE. Hiển thị tất cả bài đăng
Hiển thị các bài đăng có nhãn IDE. Hiển thị tất cả bài đăng

Regenerate deleted modules .iml files in IntelliJ

Problem: I deleted all the .iml files from my multi module project in order to delete and ignore them from github.

Solution: To re-generate .iml files



1) If you have not invalidated your cache or updated intellij since, locate the folder it used to be in > right click > Local history > show history. from here you should be able to restore that .iml file

2) If the project is gradle based, then click the button "Sync Project with Gradle Files"

3) If the project is maven based, then try re-importing the module


Hope it helps

IDE specific shortcut for sysout


sysout
sysout
If you're using different IDE to develop a program in Java, you might have searched for a short cut key for System.out.println(). I've so far programmed Java using 3 different IDEs
Netbeans, Eclipse, and JDeveloper.
Here the short cuts for System.out.println on each IDE mentioned above







Shortcut on Netbeans
Type sout and press tab key

Shortcut on Eclipse
Type syso and press ctrl+space

Shortcut on JDeveloper
Type sop and press ctrl+enter

Shortcut for InteliJ
Type sout and press tab

Wonder how sysout works? learn here


Enjoy programming...
Please post any other IDE shortcut for same in comments