Java Learning-1 myeclipse and Idea

Source: Internet
Author: User

Six months did not write, every day overtime, no time and energy to self-recharge, recently still have to make up their mind, more learning other languages (Java, Oracle, angular, etc.), expand their horizons, embrace the market, not trapped in. Net a tree.

工欲善其事, its prerequisite, each learning a language, the IDE is to first touch ripe, before Vscode, Webstorm is also tossing a long time.

Compared with VS, the overall myeclipse and IntelliJ idea style is still more like, may start from the default setting is not the same, but after adjusting the various settings, basically can revert to vs + resharper 90% usage habits

MyEclipse is a 2014 version, not up-to-date, possibly up-to-date and somewhat improved.

Idea loaded with the latest 2018.1.5 version.

1, a must be first to mix color, font, two IDE has theme package can be downloaded, and can be downloaded to vs201x dark style, a variety of colors look very pleasing to the eye and familiar with, such as the class is green, the string is orange, etc., and vs.

MyEclipse has a hole, formatted code will be automatically wrapped, and change very ugly, this to set the maximum width of each line can be

Overall interface style I tuned to the same as VS, the left side is the project tree, below is some common output, the rest of the various labels, icons, status bar are closed or hidden to achieve the maximum code area

2, shortcut keys: can be customized shortcut keys, but myeclipse some shortcut keys cannot be defined, such as want to define ALT + ' to display items, define Ctrl + Q to close all files, but not, to define two times before the line, such as ALT + ', Alt + ' is to show/hide the project tree, Ctrl + Q, Ctrl +q is off all the wait.

3, Quick jump: All support holding down CTRL mouse Click Jump, you can also define F12 and other jumps. But idea has a search Everywhere, this and resharper like, can find anything, including class name, method name, variable, etc., very convenient, daily life without it. MyEclipse has three shortcuts, probably CTRL + R, CTRL + T, CTRL + H, are to find files, class names (incredibly can't find the method name), string, usually find all to find is also possible, but this is to find all the strings, relatively slow, not like the idea of the kind of index jump directly.

4, Smart tips: The original vs Smart hints also general, with the ReSharper after the key step flying, mainly two: do not have to knock down the name will prompt, such as ABCDEFG, do not knock ABC to prompt the follow-up, you can knock ADF, will automatically put the relevant tips out, this super convenient, and pressing the TAB key is done automatically.

Idea, as a product of the same company, has a good inheritance of all the good features and it's cool to use. But and ReSharper, should be at the expense of resources at the expense of, will be slightly card, but under the solid-state drive feel OK.

MyEclipse default is only a little hint, that is, prompt method name, although you can set the a~z are prompt, but the prompt speed and effect is not ideal, as if the cross-character is not supported, and the return key is automatic completion.

5, plug-ins: all support to download plug-ins, but idea has a Mybatis Plugin (to crack), or free Mybatis Plugin (freeware), can jump from DAO to SQL XML, and write SQL There are smart hints, No corresponding plugins or settings found in MyEclipse

Https://github.com/mrshawnho/ideaagent

http://footmanff.com/2018/05/06/2018-05-06-IDEA-load-project-problem/

https://www.codesmagic.com/mybatisplugin/userguide/getting-started

http://chensj519.site/2018/04/04/%E6%8E%A8%E8%8D%90%E4%B8%8Bidea%E5%A5%BD%E7%94%A8%E7%9A%84%E6%8F%92%E4%BB%B6/

68485336

6, breakpoint Debugging: I do not know the IDE is the reason or Java features, debugging is inconvenient, accustomed to the VS attached to the process, the next breakpoint, look at the variable. On the Java side do not know how to operate, but also to explore again.

MyEclipse: There is no so-called attach to the process, the first to stop Tomcat, and then start with the debug mode, the breakpoint will stop at the breakpoint, but to see a variety of variables are not accustomed to, and step by step implementation, at the end of the controller will prompt the source code can not be found, to use F8 to go away, Some of the methods are occasionally prompted source code can not find, I have set the kind of "step by step", and not to jump to the sub-method ah.

Colleagues suggest using SYSTEM.OUT.PRINTLN () to print to the log to view the information, or simply output it on the page. This is still inconvenient, just like the JS alert or Console.log, is not a breakpoint debugging.

Idea: Not yet, you see an option attach to local process, I don't know if it's like interacting with vs.

Because idea just installed, just start groping, other also say not up, intend in home idea, in the company with MyEclipse, as far as two IDE are familiar with.

Java Learning-1 myeclipse and Idea

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.