Ultraedit is a daily tool. however, the functions actually used are only a very small part of the powerful functions of this tool. flexible use of this tool can sometimes achieve twice the result with half the effort. record and collect tips to help others.
Why is the copy/paste function unavailable??
I have used ultraedit several times and found that the copied and pasted content does not match. somehow, I simply restarted my notebook. today, I suddenly realized that ultraedit has 10 clipboard (Clipboard) and uses Ctrl + 0-Ctrl + 9 to switch them. CTRL + 0 is windows, and others are user-defined. I mistakenly call Ctrl + N during the use process, and the result content will be faulty. have you ever met?
Even opening a small file is delayed.?
This is a problem I encountered. Every time I open a file, there will always be a few seconds of delay. My machine performance is not bad. What's wrong? Network Printer is a ghost! Open "advanced"-> "Settings"-> "Editor"-> "advanced" to see if "load/restore printer settings" is selected "? If yes, remove it (the location may vary depending on the version or Chinese version ).
Switch in the opened file
If you want to open multiple files, you need to switch between them. Click the mouse and Try Ctrl + TAB.
CTRL + B
Write Program Usually, parentheses correspond one to one, but if there are too many nesting, what should I do? Place the cursor at the beginning of the bracket and press Ctrl + B. ue will help you find the end of the bracket. You can also try to press Ctrl + B several times.
F3Search
By default, when you press F3, the UE can find the selected content. F3 is the next content that meets the requirements, CTRL + F3 is the last Matching content. Alt + F3 the cursor stays in the word. Press this key to find the same word in the full text range.
CTRL + F2 set bookmarks;
There are many lines in the program. You can remember the number of lines you want, press Ctrl + G, and enter the row number to the row. However, I think it is more convenient to use Ctrl + F2. For example, you need to switch between multiple functions frequently. You can press Ctrl + F2 at the start of the function to add a bookmark to this row. Then, click Ctrl + F2 at the start of another function. If there is a bookmarkdonet, the background color of the word will be different. When you want to switch to the next bookmarks, press F2, but what should you do with the previous tag? CTRL + F2? No, hey, you just need to add the bookmarks or cancel the bookmarks for the current row. It should be Alt + F2 (Alt + F2 jump to the previously set bookmarks ).
CTRL + W switch automatic line feed
Have you used this shortcut key?
You must have viewed a line of text that is super long and you have to drag the scroll bar below to read it. This is not in line with our reading habits.
At this time, the CTRL + W shortcut is useful.
Switch back to original mode: press Ctrl + W again
EnableReplace with regular expression search
Sometimes there will be some simple text processing work. For example, if you have a text on hand, you need to add a ";" to the back of all rows ";". Use search replacement to complete Ctrl + R and replace '^ P' with' ^ P; '. Then you can replace all values (Alt + a) or click Start, one-by-one search and replacement
Regular Expression (ultraedit syntax ):
% Match the first line-indicates that the string to be searched must be the first line.
$ Match the end of a row-indicates that the string to be searched must be at the end of a row.
? Match any single character except the line break.
* Any number of characters matching any number of characters (excluding line breaks)
+ Match the leading character or expression once or more times (excluding line breaks)
++ Match with leading characters or expressions that do not appear or appear more than once (excluding line breaks)
^ B match the page interrupt character
^ P matches the line break of the DOS file
^ R matches the line break of the Mac file (CR only)
^ N matches the line break of a UNIX file (lf only)
^ T matches a tab
[] Matching a single character in square brackets
Delete empty rows: replace % [^ t] ++ ^ P with empty strings.
Remove trailing space: Replace [^ t] + $ with an empty string
Space at the beginning of the row to be deleted: % [^ t] + is replaced with an empty string
Each line starts with four fixed spaces: replace % [^ t] ++ ^ ([~ ^ T ^ p] ^) is "^ 1"
Each segment starts with a fixed 4-digit space: replace % [^ t] + ""
(If a line starts with a space, it is regarded as the starting line of a segment)
Merge a segment into one row: Replace [^ t] ++ ^ P ^ ([~ ^ T ^ p] ^) is ^ 1
(Note: here we assume that the text is a line break in DOS mode-Cr/LF)
Remove HTML Tag: replace ^ {<*> ^} ^ {<* ^ p *> ^} with an empty string.
Delete all <A>: replace <[] ++ A * [] ++ href [] ++ = *> with an empty string.
Delete the first two columns of characters specified in the text: replace % ?? Empty string
Insert 2 blank characters after the first column: replace % ^ (???? ^) ^ (? ^) Is "^ 1 ^ 2"
Search for all numbers: [0-9] + [.] ++ [0-9] +
Find all words: [A-Z] +
Find all urls: http: // [a-z0-9 ^ ~ '_./^-^? = &] +
Note: to replace the regular expression, you must check the regular expression option.
Calculate the combination of numbers in the selected area
For example, the following text
2
23a1
4 1.1
5
6
Select first, and then the toolbar: column/sum of selection. The UE will be separated by spaces and letters to tell you a sum.
Column editing function of UE (Alt + C)
First, ALT + C is required to enter the column editing mode.
After that, you can use the mouse to select a Square area. Delete, copy all you like.
If you want to add a 'test' to the second character of each row, position the cursor to the first row and the second column in column editing mode. Then select the toolbar (column/Insert fill column/test)
You can also use this function to insert rows. The copy and paste operations in the column editing status are very interesting and can achieve unexpected results in some cases.
UE comparison
UE has a built-in comparison function, which can help you compare the differences between two files; operations: File/compare files; set the comparison parameter to ignore something you don't care about. Click Compare to go to the comparison page. You can set to display only different, identical, or both. The daily application is okay.
Add current timeTimestamp
Sometimes writeCodeTo comment out, such as the one changed on that day, click F7 to try.
Restore to the last storage status
There are many changes to a file. If you want to undo it to the Initial State, file/revert to saved.
File backup, rename
A file is to be backed up. If you choose to save the file, the file you saved is currently opened.
Use Files/create attachments and backups)
You can also rename the currently edited file directly/rename