Because before learning Java is accustomed to C # code formatting style, namely the following
Figure 1The first code format, and look at the second code format when the code is very messy, always find "{}" symmetrical feeling. The shortcut to the
If the prompt function is unavailable for Eclipse, set it as follows:
Window-> preferences-> JAVA-> Editor-> contentassist-> advancedSelect the proposal kinds contained in the 'default' content assist list: in the preceding tab, check the other Java proposals option.
If you want to input other letters to achieve the effect after the Input Point, read the followin
There are a lot of plug-ins in the eclipse environment that can help us with the static analysis of the code, which can help us find bugs in the code as early as possible. Here are a few common plug-ins:
1. PMD
We can install the PMD plug-in for eclipse through Http://pmd.sourceforge.net/
again
Enable the publisher
Lambda
Eclipse
Djunit setting method
Djunit worker
Please refer to the following link for more information:
Ant
Djunit-coverage-Report has been released
Djunit internal memory usage
Jcoverage metrics notes
Lambda
Please refer to the following link for more information: coveragereport
Please refer to the following link for more informati
1 Build the Java Development environment, install the JDK2 download editor, from the official website download editor, Java Standard and Eclipse IDE for Java developers, download and unzip the folder to run Eclipse.exe can be
3 http:// Www.eclipse.org/babel/downloads.php Choose Chinese Simplified package download corr
Recently encountered a problem when opening eclipse will pop up the following dialog boxFind the relevant information on the Internet after the combination of their own problems, summarized as follows.Cause of the problem:1. The usual reason is that the version of Eclipse installed or the version of the Java JDK does not match, and generally it is best to install
PMD is a source code parser. It finds common programming flaws, such as unused variables, empty catch blocks, unnecessary object creation, and so on. It supports Java, JavaScript, Salesforce.com Apex, Plsql, Apache Velocity, XML, XSL, and more.In addition, it includes CPD (copy-paste-detector, copy-paste detector). CPD in Java, C, C + +, C #, Groovy, PHP, Ruby, F
content is folded, although it seems to be streamlined, but some inconvenient, to a point open.So I looked up the configuration of the method of folding.Window->perference->java->editor->foldingAnd then want to open what by default, folding everything on its own to set up. I'm just going to fold the function without folding it.If it doesn't work, just look at Window->perference->general->editor->structred-text.Find a very good self-motivated format f
When Eclipse starts, it appearsThis is your JDK environment does not match your eclipse version, if your eclipse is a 32-bit JDK will have to be 32-bit reinstallation of a histograms jdk just fine.If your JDK is unzipped, find the Javaw.exe copy path in the Bin folderCreate a shortcut for your Eclipse right-click on th
The main use is Eclim this pluginOfficial website ineclim.orgInstall using the method described in the following linkhttp://eclim.org/#how-do-i-get-install-itThe first step:Need jdk1.5 abovegvim7.1 or moreEclipse 4.5 +Step Two:Download the Eclim jar packageHttp://sourceforge.net/projects/eclim/files/eclim/2.5.0/eclim_2.5.0.jar/downloadStep Three:Run PowerShell or CMD into the directory to save the jar package in console input Java-jar Xxx.jar xxx for
As we all know, the first time you look at a class file, Eclipse gives you an interface option to add a source code path. However, if I had to change the source code path, eclipse would not be prompted. Then use it manually. Method 1: Add a compilation path using Eclipse, wh
Eclemma provides a good visual view of the code coverage that can be effectively integrated into eclipse.
Plugin Download Address:
http://update.eclemma.org
When the plugin is installed, one more button in the top action bar
The leftmost one can display code coverage:
Shortcut keys in eclipse quickly generate common code (e.g., parameterless, parametric constructs, set, get methods), and important memory analysis in Java (stacks, heaps, method areas, Chang)These are the shortcuts in eclipse that quickly generate common code (for example,
Eclipse the default width of the next line of code is 80, a little longer line of code will be wrapped, the code is less readable, we can set our own code width in Eclipse.set the path to : "window" → "Preferences" → "Java" → "
Eclipse Import Java source code
Download the source package (the general JDK comes with it, I don't) src.zip
Installed JREs, JAVA-Preferences, window, Eclipse, Windows
Select JDK, edit
Select the Rt.jar package (my second row) and click on the left triangle to
A week did not open their own computer eclipse, an open unexpectedly error, the errors are as follows:CDM run Java-version and Javac run the Javac times wrong, error hints are as follows:Then found that the JDK bin is not Dt.jar and Tools.jar, originally installed JDK and JRE, the first installation of the JDK, and then installed JRE,JRE may overwrite the contents of the JDK resulting in file loss, and then
Java project export source code jar package check Chinese comments garbled in Eclipse, jareclipseProblem scene:
Since many projects are added to the Maven main project, it is convenient to update and debug the project, but the speed of Eclipse is severely affected. Therefore, some projects are exported to jar Packages
Problem site:Because the project is much more, all added to the MAVEN master project, although the update debugging is convenient, but the project more serious impact on the speed of eclipse, so a part of the project separately exported the jar containing the source code, uploaded to the nexus, for other projects to reference But when viewed through eclipse in th
to use Java Code template realizes a more convenient and quick way.
1. Template Settings
On the Eclipse toolbar, select window-> Preferences-> Java-> Editor-> Templates to enter the following interface:
The list is Eclipse's own code Template, and the last column is "on" a
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.