EditPlus remote editing, syntax highlighting, compiling and running source code settings

Source: Internet
Author: User

Recently, in the process of writing code, in addition to the Java use of Eclipse, under the Linux edit under the VI, sometimes also use editplus open some files, such as configuration files, log files, scripts and so on. Personally feel that editplus in a lot of scenarios are relatively easy to use, but also very light, some of the useful functions of a simple summary of a bit.

1. Remote editing

By using SFTP to edit remote files, in addition to using sftpdrive directly to map the server file system cost geomagnetic disk, you can also take advantage of the EditPlus itself support FTP function. From the coding point of view, the latter is more convenient, set up, each time you need to edit, you do not have to open the sftpdrive, from the "Computer" to open the corresponding path, click, but directly through the EditPlus directory directly select it.

Both require the server to open SSH, the specific opening method is not here to repeat, directly show how to configure EditPlus after SSH to enable it to access the files on the server:

First, in the "File" menu, select "FTP" in "Open remote";

Then, the configuration for the remote connection is set in the order in the diagram:

(1) Click "Settings";

(2) Select an FTP group (the group name can be modified in the "...");

(3) Click "Add";

(4) Enter the server IP address, user name, password;

(5) Click Advanced Options;

(6) Tick "use SFTP".

(7) Confirm the settings.

At this point in the "Open Remote Files" window, you can see the remote directory. At the same time, under "directories" on the left side of the main interface, you can see the remote directory as easy as working on a local disk.

2. Syntax highlighting & Auto-completion

First, you need to download the appropriate configuration file from the official website, for example, Shell,

After extracting the configuration file, in tools, parameter settings, select Settings & syntax under Files

Then configure the steps as shown:

(1) If not, create a new file type, where bash is filled;

(2) Under the Generals network download configuration, the corresponding grammar file *.stx and AutoComplete file *.ACP fill in;

(3) According to personal preferences and language characteristics, set indentation, such as (4) 4, 4, and a space instead of a tab.

This section refers to: http://www.pythoner.com/182.html, but the function template is not set, has been automatically imported.

3. Adjust font size in real time

Although you can specify the font and size from the font, general, tools, parameter settings, it is too cumbersome to reset each time you open a different file. Look at the log and source code, the preferred font size is often different.

Then you only need to use the [alt]+[shift]+[mouse wheel] key combination.

4. Compile and run Java

After a certain configuration, it is possible to compile and run Java directly in the EditPlus. With the JDK installed and the environment variables properly configured, under Tools, configure user Tools ..., select Tools, user tools, such as Configure Javac and Java, respectively, by [ctrl]+[1] and [ctrl]+[2] You can compile and run the Java file. The key sequence is the same as the Java and Javac order.

Note: There is a question on the Internet, sometimes the correct installation of the JDK and set the environment variables, under the CMD can be correctly Javac/java, but not in EditPlus, Javac prompt "error: Accept the class name only when the annotation processing is explicitly requested." I also encountered this problem, carefully studied the discovery, the original is Java and Javac configuration confusion. The former configuration when the parameter is $ (filenamenoext) ignores the extension, and the latter is $ (FileName) using the full file name.

Obviously, "Javac test" is not valid for source file Test.java, and "Java Test.class" is not valid for the class file "Test.class", which is why.

EditPlus remote editing, syntax highlighting, compiling and running source code settings

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.