Several tips for using notepad ++ (TIPS)

Source: Internet
Author: User
Tags tidy ultraedit

Author: iihero (xionghe ),Copyright:This statement can be reproduced at will. During reprinting, you must mark the original source and author information of the article as hyperlinks.
Link: http://iihero.8800.org/frog/user/seanho/article/2008-01-27/13

You cannot use the trial version of ultraedit in the Organization, let alone crack's ultraedit. I also think it is expensive to buy a copy. It costs $35, and sometimes the software made by devils is quite valuable.

In fact, there are a lot of free file editors available for use. Scite, textpad, notepad ++ are quite good. Use them as a substitute for ultraedit.

These three editors are installed on my machine at the same time. Textpad is not completely free, but it provides a free assessment version, which is more user-friendly than ultraedit. Scite is often used for simple compilation and editing. It can be used to write Python code or simple Java code. There is a corresponding unix version, which is super powerful.

Notepad ++, not all of which are excellent. It is very difficult to open a large file. You can try more than 5 MB of text files.

However, some of its functions are quite good, and I like its textfx plug-in very much.

1. Can eliminate blank lines in the file
    Select all text,
    TextFX ---> Edit ---> Delete Blank lines
2. Organize xml text format
    This function is very good, often encounters a few hundred KB of xml text is a line, you can use
It quickly organizes a line of text into a canonical xml file.
    Select all text
    TextFX ---> HTML Tidy ---> Tidy: Reindent XML
3. Automatically add the line number directly before your text line:
   Select all text
   TextFX ---> Tools ---> Insert Line Numbers
The following is to use it to sort out the code with line numbers:
00000001 public static void main (String [] args) ... {
00000002 TestCharset t = new TestCharset ();
00000003 try ... {
00000004 t.connect ();
00000005 t.getCharset ();
00000006 if (t.charset.equals ("ISO8859_1"))
00000007 t.testGetValuesISO8859_1 ();
00000008 else if (t.charset.equals ("GBK"))
00000009 t.testGetValuesGBK ();
00000010 else if (t.charset.equals ("UTF-8"))
00000011 t.testGetValuesUTF8 ();
00000012} catch (Exception e) ... {
00000013 //System.out.println (e.getMessage ());
00000014 e.printStackTrace ();
00000015} finally ... {
00000016 try ... {
00000017 t.disconnect ();
00000018} catch (Exception e2) ... {
00000019}
00000020}
00000021}
 

4. Can be used to view hexadecimal format

5. There is ftp plugin, not bad

6. It seems that there is also an Explorer plug-in, which has not been used much

7. Its function list is also pretty good, commonly used, at least when looking at the java source program

8. External commands can be customized, I sometimes use it to compile java source program Press F6, there is a custom window.

This is my javac command: jc5.bat $ (FULL_CURRENT_PATH)

Below is my command to run java

rj5.bat $ (NAME_PART)

As long as I set jc5.bat and rj5.bat in a directory on the outside PATH, it can be used.

For example, I add d: / shell to the PATH environment variable here, and I can put many of my favorite batch scripts.

The content of jc5.bat is roughly as follows:

 

echo off
setlocal
set JAGUAR_JDK15 = d: sharedjdk1.5.0_01
set JAVA_HOME =% JAGUAR_JDK15%
set PATH =% JAVA_HOME% bin;% JAVA_HOME% jrebin;% PATH%
set OLD_CLASSPATH =% CLASSPATH%
set CLASSPATH =.;% JAVA_HOME% libdt.jar;
set CLASSPATH =% CLASSPATH%;% JAVA_HOME% libtools.jar;
set CLASSPATH =% CLASSPATH%;% JAVA_HOME% jrelibrt.jar
set CLASSPATH =% CLASSPATH%;% OLD_CLASSPATH%

"% JAVA_HOME% injavac" -g% *
endlocal

 

 
rj5.bat is also easy to set up.

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.