EditPlus configuration Java syntax auto-completion Function

Source: Internet
Author: User

I used to use Java programming's advanced IDE, eclipse family products, and found very high. The powerful code auto-complementing feature allows us to write less unnecessary symbols, to another extent, it avoids compilation failure due to missing symbols or mismatch between the two sides. It suddenly changes to the revolutionary era of handwritten code, leaving the eclipse family, the most common text editor EditPlus is missing the time of programming in Eclipse. fortunately, ep provides this function, which enables Automatic completion of code with several modifications, especially those commonly used, such as if (), else if ().... the process is as follows, hoping to contribute to the use of EP children's shoes. 1. Start EditPlus3, Click Tools> Preferences> File> Settings & syntax, and select the "Java" project in File types on the right. 2. Find the AutoCompletion item that has been selected on the lower side. The default value is cpp. acp, click "... "button, in e In the ditplus installation directory, find java. select the acp file, and click the open button. The content of the file is displayed in the Editplus window. Let's edit the content together. the so-called acp file is short for the Auto Completion. the following figure describes how to find Auto Completion. 3. the following code is the configured java. acp, you can also find the same configuration as the Code in the following attachment. download it back. The EditPlus can be directly introduced by following the path. the best way is to back up the java and acp files under the installation directory before editing or overwriting your source files, "backing up files is a good habit in technical learning and practice. this is especially important for beginners like me in actual projects. As for the reason, everyone knows! The Code www.2cto.com is as follows: # TITLE = Java; EditPlus Auto-completion file v1.0 written by ES-Computing .; this file is provided as a default auto-completion file for Java and C #. # CASE = y # T = if (^ !) {}# T = while (^ !) {}# T = for (^ !; ;) {}# T = switch (^ !) {Case :}# T = do {} while (^ !); # T = class ^! {}# T = try {^!} Catch () {}# T = interface ^! {}# T = namespace ^! {}#; Add by ivantian 2013-01-19 # T = else if () {^!} # T = else {^! }; You can delete and modify it here! #; Add end; C # only # T = foreach () {^!} # T = get () {^!} # T = set () {^!} # T = lock (^ !) {}# T = struct ^! {}# 4, "^! "Is a regular expression. You don't need to worry about it. The meaning is: in the Code, if there is a corresponding operation, the cursor will stay at the position of the character. compared with the original file, I only had the modifications shown in the above Code. in the above format, if you wish, you can continue to modify it! The same is true for operations in other languages. it is a good methodology that is applicable to any field. 5. After the configuration is complete, restart the editplus software. This is also a good operation, especially after many software usage rules are configured, or in other cases, a new java file is created, you can use the code to automatically complete the function. so easy, So comfortable! Enjoy it! 6. Test After restart. for example, to enter the if statement, you only need to enter the keyword if, and then press the "Space key", the () {} will be automatically completed. At this time, you only need to enter the code at the cursor position. others.

Related Article

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.