Ultraedit, JDK development partner

Source: Internet
Author: User
Tags ultraedit

 

1. Generate the "compile Java program" tool item
1. Start ultraedit, click "advanced" in "menu", and select "tool configuration" in the pop-up menu ".
2. in the "command line" column, enter: C:/jbuilder9/jdk1.4/bin/javac.exe % P % N % E (Note: This is where jdk1.4 is located in my computer, enter the JDK directory correctly)
3. In the "working directory" field, enter % P
4. In the "menu project name" field, enter: compile Java program
5. In the doscommand output box, select "output to list box", "Show DOS box", and "Capture output"
6. Click "insert" on the right.
1. Generate the "Java program execution" tool item
1. Start ultraedit, click "advanced" in "menu", and select "tool configuration" in the pop-up menu ".
2. in the "command line" column, enter: C:/jbuilder9/jdk1.4/bin/java.exe % N (note: this is the location of jdk1.4 on my computer, enter the JDK directory correctly)
3. In the "working directory" field, enter % P
4. In the "menu project name" field, enter: execute Java program
5. In the doscommand output box, select "output to list box", "Show DOS box", and "Capture output"
6. Click "insert" on the right.

There are mainly the following parameters:

% P path: Path of the directory where the currently opened file is located, for example: C:/project/test/
% N file name (without extension), such as: Test
% E file extension, such as. C and. Java (note that the first character string is an English sentence)
% F when equal to % P % N % E, such as: C:/project/test. c

In addition, the upper case of the preceding parameter indicates the DOS-compatible short path and short file name of 8.3, and the lower case indicates the long path.
And long file names.
In Windows 98, the DOS window does not accept long path names. Therefore, when using lower-case parameters, it is best to use English
Double quotation marks, such as "% P". In this way, the DOS window can accept the value returned by this parameter.
For details, refer to my other article "differences between CMD and command".
% Modify % in some cases, you may need to manually enter some parameters during each operation. Add this
The % modify % parameter can be called up when the command is run to prompt you to enter other parameters or cancel the operation.

% Sel % this parameter indicates that ultraedit adds the selected part in the current document to the % sel %
Location.
If you use the project function of ultraedit, or the file being edited belongs to a project, there are some additional parameters.
You can use:
% R returns the full directory and project name of the project file (% R returns the long path, % R returns the short path)
% RP returns the full directory path of the project file (% RP returns the long path, % RP returns the short path)
% Rn: return the name of the project to which the project file belongs (% rn returns the long path, % rn returns the short path)

In the "command line" text box, it is best not to enter the full path + full file name, because
Specifies the working directory of the current file.

2. Keyword check

Previously, ultraedit was inconvenient because if you want to name a class file, it will automatically change it to file and finally find a solution, such as removing the option "automatically correct keyword.

 

Iii. Prompt Function

Generally, the software has the function of Automatic completion, and ultraedit can also be implemented.
1. First, let's talk about the keywords in Java, names of various types, methods, and other names written to a text file, as follows:

Class
Private
Public
...

Then save the name text

2. Choose menu advanced> Configuration> edit, and enter the address of the text file above in the box after "Automatically complete file" (you can select through browsing)


3. Choose menu advanced> Configuration> shortcut key ing, select edit in the command, and then register a CTRL + ALT + space on the right.
(The default value is Ctrl + space. The English key opens the input method in the Chinese text by default. Therefore, you can add an ALT key and set it to another key,
As long as there is no conflict)

4. Now your ide has the automatic function

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.