Vs tool for eclipse Quick Start, vseclipse Quick Start

Source: Internet
Author: User

Vs tool for eclipse Quick Start, vseclipse Quick Start

Download eclipse Tool

First of all, this article applies to students who have just started to learn java.

I have to say that vs is indeed very powerful. It is often integrated in the installation package. It can be installed with almost one click and used directly, which is very convenient to operate. eclipse is not suitable for vs at the beginning. This article focuses on how to get started with eclipse quickly.

Download the eclipse tool. The java jdk configuration is not within the scope of this article. At the beginning, students who are interested in learning java can search for how to configure jdk by themselves.

Chinese

As the saying goes, to do a good job, you must first sharpen the tool. The eclipse version downloaded from the official website is in the English version. If there is no Chinese version, you will recognize it, since the official website provides a Chinese package, you should first turn it into a Chinese package.

First go to the official website to download the Language Pack I eclipse download is the NEON version, so the Language Pack also select Neon, click in.

Click Enter, for example, select Chinese (Simplified). Of course, you can also drop down the scroll bar on the right to the specified position.

Select the zip package, download it, and decompress it to the eclipse directory.

 

Editor

First, syntax coloring

Menu window-preference Java-Editor-syntax coloring example

In the left-side square mark, select the corresponding one, and in the right-side elliptical mark, adjust the color, bold, italic, etc. I used, so try to adjust the color of the editor content like.

Then the code is formatted. The shortcut for eclipse is Ctrl + Shift + F.

The default eclipse Interface format is relatively compact. For example, braces {In vs, a new line is displayed by default. In eclipse, the current line is followed. After the color is adjusted, the format is adjusted;

Menu window-preference Java-code style-formatting program as shown in Figure

Operation continues. Create a new one on the right, as shown in figure

In the pop-up window, enter a name, select the check box to open the edit dialog box, and click OK. Then, you can adjust the code format on the page, as shown in. Adjust on the left and preview on the right. What I want to adjust is the same as, in this way, you can try to reduce the habit of getting started with the tool and get started with eclipse quickly.

 

Smart tip

The prompt of vs is already quite cool, and adding resharper is even more powerful. It is inconvenient to enter the decimal point in eclipse by default. For example, when you enter StringBuilder to create an object, there is no prompt. In this way, if a class does not fully remember the name and case, it is hard to get a letter error, second, after the object instance is created, the stringBuilder is used by default. the prompt is displayed only after the decimal point is entered, which is inconvenient. You can adjust the prompt as long as you enter the decimal point.

The adjustment method is as follows: window-preference Java-Editor-content secondary tag location only has the decimal point by default. You can enter both the decimal point and lower-case letters and upper-case letters.

Shortcut Keys

Eclipse also provides a rich set of shortcut keys, which can be customized by Baidu. Here we only talk about the tools that will be used in the hands. Other tools do not need to be remembered, you just need to remember the few frequently used ones.

Ctrl +/Add Delete comment

Ctrl + Shift + O automatically import the package. For example, after you copy a piece of code from another place, click here to import all the packages referenced in it.

Ctrl + Shift + F format the code

 

Attached VS format template

 

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.