IntelliJ IDEA与Eclipse


Shortcut keys to be said in advance! The following table lists the keyboard shortcuts I use the most in both IDEs: 

 


 

 


 

 


 


Link editors Many times we are editing a file and need to edit other files at the same time. If the FF class is a frequently edited class, and other classes in the same package need to be edited at the same time - through the function of the link editor, you can quickly switch between classes in the same package. What kind of convenience does this feature provide us? Whenever a file is edited, it immediately shows its location in the package browser view/project view. If you use the expanded package view, it will divide and display the classes by function, instead of using the hierarchical (dao layer, service layer, etc.) to display the classes. This is also the way I highly recommend the presentation, because it is really convenient. Eclipse can see and use the Link to Editor button in the project browser view or package browser view. 

 

 
 


 


If you don't want to use this feature, you can still use the Alt+Shift+W shortcut to view the package view or engineering view and set its display position. 


 


IntelliJ select Settings in the project view or package view, and then check the Autoscroll From Source function; 
 


 


If you don't want to use this function, you can still use the shortcut key Alt+F1 to navigate and set the display position; 


 


The charm of IntelliJ is that many functions are set by default. IntelliJ itself comes with many functions (such as: GitHub integration). Of course, in Eclipse you can also get enough functions by choosing different versions of the plug-ins, you just need to configure these plug-ins yourself. Using the mouse wheel to change font size In IntelliJ, it is possible to use the mouse wheel to change the font size (I use this feature a lot in browsers). But this feature needs to be activated manually. 1. Open the IDE's settings (Ctrl+Shift+S or click File menu > Setting) 2. On the editor page (type "Editor" in the search box), make sure the Change font size (Zoom) with Ctrl+MouseWheel option is checked Checked. 

 
 

 

 

 
 


 


Start the command line terminal directly in the IDE and  

use the shortcut key: Alt + F12  

Flexible and easy-to-use template input p, and then use the shortcut key Ctrl+J to get the following options: 

 

  • psf – public static final
  • psfi – public static final int
  • psfs – public static final String
  • psvm – main method declaration


Strong support for JavaScript, HTML5 The commercial version of IntelliJ should include code assistance for HTML5, CSS3, SASS, LESS, JavaScript, CoffeeScript, Node.js, ActionScript, and other languages. I will confirm these as soon as possible. Compared with Eclipse, IntelliJ's shortcomings cannot maximize the console . In Eclipse, you can use the Ctrl+M shortcut or double-click the label to maximize the current console. But in IntelliJ there is no similar way to do it. Hover to display Javadoc Of course, you can use the Ctrl+Q shortcut in IntelliJ to get the above functions. But when the mouse hovers over the code, you can see some of the Javadoc functions are so friendly in Eclipse. In my opinion, every IDE is great, IntelliJ looks more modern, but sometimes I like the classic version of Eclipse, probably because I used to use Eclipse a lot . It may continue to be affected by this factor in the future. This is all my experience here. I will continue to add some functions and functional differences encountered in using Eclipse and IntelliJ in the future, so stay tuned. 

 
 

 
 

 
 

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326357500&siteId=291194637