In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Editor Ultraedit shortcut key
When it comes to editor shortcuts, VIM is unparalleled. To object, it has to be an EmaCS with pedals. There is still a gap in UE, a big gap. Note: VIM is open source and free, while UE requires registration. UE is the best editor for Windows-- without GVIM and Emacs. VIM and Emacs are the best editors for any operating system.
198 automatic line wrapping CTRL + W
199 insert current date / time F7
Find matching parentheses (, [, {or},],) CTRL + B
Paragraph 201 reformats CTRL + T
202 Tag list CTRL + F8
Convert selected text to lowercase CTRL + F5
204convert selected text to uppercase Alt + F5
205 activate spell check CTRL + K
206switch column / block mode ALT + C
207Settbookmark CTRL + F2
208 go to the next bookmark F2
Insert user-defined template Alt+0-9 or Shift+Alt+0-9
Scroll one line up with the cursor unchanged CTRL + Up
Scroll down one line with the cursor unchanged CTRL + Down
212 display function list F8
213 to the next paragraph Alt + Right
214to previous paragraph Alt + Left
Tip 1: how do I remove lines that contain specific strings in edited text?
The trick is to mention .CTRL + R in the help file of UltraEdit to replace (Replace) window, select "use regular expression", and then replace it with empty content with find% * your string * ^ p. For example, I currently have a text file that needs to remove all lines containing the string http://www.dbanotes.net/ and look for% * http://www.dbanotes.net/p to replace it with empty. Note that ^ p * ^ is the newline character of the DOS file type. if it is a Unix file, use ^ n.
Tip 2: how do I add specific characters, such as commas, at the end of a line?
With the above experience (I actually learned it from my colleagues for the first time), CTRL+R called up the Replace window and checked use regular expressions. Then you can find ^ p (or ^ n, if it is a Unix file) and replace all with ^ p (or ^ n). To add, if it is a MAC (Apple) type file, the newline symbol is ^ r.
Tip 3: how do I delete blank lines?
Referring to the above two examples, look for ^ p $and replace it with empty.
It'seems that regular expressions need to be learned.
Tip 4: how do I add a timestamp to editing a file?
F 7 shortcut key is fine. Why don't you try it?
Tip 5: why does the copy (Copy) / paste (Paste) function no longer work?
Not afraid of everyone's joke, I found that the copied and pasted content did not match when I used UltraEdit several times. I didn't know why, so I simply restarted the notebook. Today, I read the manual and realized that UltraEdit has 10 clipboard, which are switched by Ctrl+0-Ctrl+9. Ctrl+0 is Windows, and the others are user-defined. I called CTRL+n by mistake in the process of using it, and there was a problem with the content. Have you ever encountered it?
Tip 6: there is a delay in opening even small files?
This is the problem I have encountered. There is always a delay of a few seconds every time I open a file. The performance of my machine is not bad. Hey, what's going on? What's wrong with the network printer! Open Advanced-> Settings-> Editor-> Advanced and see if load / restore Printer Settings is selected? If so, remove it (different versions / Sinicization or not may have different locations).
Tip 7: delete the current line content CTRL+e
Tip 8: make common menu functions into shortcut buttons and put them on the panel.
1 menu path: Advanced-Configuration-Toolbar, select the favorite function menu on the left, select the location on the right, and click Insert. For example, "Dos to Unix" is used to remove the enter key under dos, "Compare files" is used to compare files, "Display Ruler", "Display Line Numbers", and the most surprising thing is that there is a "ASCII table" function, so you don't have to go through the cabinets every time you check the ASCII code. However, the ASCII value of displayable characters can be seen by looking directly at the hexadecimal mode, without so much trouble.
Tip 9: column mode (shortcut key: Alt+C)
This feature is powerful when you need to modify or create data in batches. Try to open a file, press Alt+C,Ctrl+A, and start writing, and you will find that all the lines in the file are performing the same action, and a row of the same data appears. Use your head and you will find all kinds of wonderful uses.
Tip 10: make a line mark
1 move to the line that needs to be marked, press Ctrl+F2, mark it; go to any other line in the file, press F2, and go back to the mark. Multiple tags can be made, and F2 loops through each tag. F2:Next Bookmark,Alt+F2:Previous Bookmark .
Tip 11: column Fla
When writing a background program, you don't want to write too long a line, which is usually less than 80 bytes, but even if the ruler is displayed, you can't see whether the line in the middle and lower part of the screen has reached 80 bytes, unless you look at the column number of the lower status bar. That's when this thing works. Menu path: View-Set Column Markers, you can set two column flags, we first set the first, enter 80 in the first edit box, and then select View-Show Column Marker 1, see? A vertical line appears at the 80th byte.
Tip 12: comment
Sometimes when debugging a program, you need to comment consecutive multiple lines with "/ /", and then let go of the comments. It's too corny to write one line at a time. There's something ready-made. Select the line to comment, Edit-Comment
Add adds comments, Edit-Comment Remove.
Tip 13: Editin
1 of course, you can double-click the whole word with the mouse and Ctrl+J with the keyboard. Delete the entire line Ctrl+E, delete to the beginning of the line Ctrl+F11, delete to the end of the line Ctrl+F12.
Tip 14: don't let it keep asking if you convert the unix file to the tail dos file.
When you open a unix file in version 9.0, it always asks if it is converted to a dos file, which is really annoying. But it can be blocked, Advanced-Configuration-General, just click on the Auto Convert Unix Files in the middle of the right.
Tip 15:
Open a file in the contents of a file if it contains "c:test.txt" or "http://www.test.com/js/test.js""
For such content, you can position the mouse over it and click the right button. There are multiple options "c:test.txt" or "http://www.test.com/.../test.js"" at the top of the pop-up menu.
Click it to open the appropriate file.
When ctrl+b writes a program, parentheses usually correspond to one by one, but what if there are too many nesting and dazzling eyes? You place the cursor at the beginning of the parenthesis and pressing ctrl+b,UE will help you find the corresponding end of the parenthesis. You can also try pressing ctrl+b several times in a row. [Stick Out Tongue]
F3
By default, when you press F3, UE can find what is now selected. F3 is the next match and ctrl+f3 is the previous one. (please check the advanced/configuration/Find tag)
Ctrl+f2
There will be a lot of lines in the program, of course you can remember the number of lines you want to get to, then use ctrl+g, and then enter the line number to the line you are on. But I find it more convenient to use ctrl+f2. For example, you have to switch between multiple function frequently. You can bookmark the line by clicking ctrl+f2 at the beginning of function. Then at the beginning of another function, also have a ctrl+f2, where there is a bookmark, the background color of the text will be different. When you want to change to the next bookmark, press f2, but what if you think of the previous tab? Ctrl+f2? No, hey, hey.
Press again to add the bookmark or cancel the bookmark on the current line. It should be alt + f2.
Simply replace with the search for regular expressions
Sometimes there is some simple text processing work. For example, if you have a text on hand, you need to add a ";" to the end of all lines. Complete ctrl + r with find and replace, and replace'^ p 'with' ^ p'. (remember to check regular Expressions so that you can use the regular expression function.) Then you can choose replace all (alt+a), or click to start, search and replace one by one, which has the advantage of knowing that you have replaced those, and sometimes you may not want to replace them all.
Replace something like'{$abc} 'with' var abc=abc;',abc may be another character ctrl+r, and look for'{^ $^ (* ^)} 'with' var ^ 1 = ^ 1;'(remember to check regular Expressions so that you can use the regular expression function.) Then you can choose replace all (alt+a), or click start, search and replace one by one.
Custom shortcut key
UE has keyboard shortcuts for many functions, but not all of them. 11.00 has a Text2html function. I've come across a situation where I have to do this with a lot of code in my work. I just want to set my own shortcut key.
Advanced/configuration/key mapping
Find the command you need in commands. I am HTMLConvertSpecialChars here, and then click the input box below Pres s new key to set a keyboard shortcut that feels good and does not conflict. For example, ctrl+alt+s. Then click ok. In this way, the efficiency can be improved exponentially with commonly used functions.
Calculate the sum of the numbers in the selected area
For example, the following text
two
23a1
4 1.1
five
six
Select first, and then Column/ (sum column/Selection). UE will divide the numbers with spaces and letters, and tell you a total.
Column editing function of UE
The first step is to alt+c and enter column editing mode. After entering, you can use the mouse to select a square area. Delete and copy it all depends on how you like it.
If you want to add a 'test',' at the beginning of the second character of each line in column editing mode, position the cursor to the first row and the second column.
Column/ (Insert/Fill column)
You can also insert the number of rows using this feature Copying and pasting in column editing is interesting, and in some cases can achieve unexpected results.
Comparison of UE
UE has a built-in comparison function that can help you compare the differences between two files.
File/compare files...
If you open two files to compare, UE will automatically fill in the two files to be compared, otherwise, you have to use the browse function to find the two files, set text or bin, and whether you want to ignore something you don't care about. Then click compare to go to the comparison interface. You can set to display only different or the same or both. Day-to-day applications are fine. (it's a bit like BC, I don't know who copied it from whom)
Join the current time
Sometimes you have to comment on the code, such as the one you changed that day, click F7 to try.
Switch between open files
If you open multiple files, to switch between multiple files, click with the mouse, please, try ctrl+tab. Many multi-window software supports this feature.
Restore to the last saved state
A file has been changed too much, want to undo to the original state, file/revert to saved.
File backup, renaming
A file needs to be backed up. If you choose save as, you will currently open the file after your save as.
With fle/ (make copy/backup), you can also directly rename the currently edited file file/Rename file
Project function of UE
After 11.00, there is a function of automatically opening the file that was opened when it was closed last time, but it doesn't seem to have existed before. This allows you to use the Project function. In fact, it is to define a set of related files. Project/ (new project/workspace) UE will ask you to save a * .prj file. Next time you can open UE, project/ (o pen project/workspace), continue the session work of the last project. You can also file/ (recent project/workspace)
Function list function of UE
Open a program file, such as * .js, and make sure view/view as (*) / Javascript. Select view/ (view/lists) / function list. You can also use F8.
Adjustment of large code indentation
Select the block of code you want to adjust, press tab, indent it, and then click shift+tab. How did it work?
Right-click function of UE
1) go to the space at the end of the line
Select the area where you want to go to the space. Right click / format/menu../trim trailing spaces
2) Delete the whole row
Locate the line that you want the cursor to delete. Right click / delete/delete line, (you can also use ctrl+e)
3) comment the code
First of all, make sure that the correct syntax is selected to highlight view/view as () / Javascript, and then select the part to comment.
Right click / delete/comment add or comment remove
4) formatting code
First, make sure that the correct syntax is selected to highlight view/view as () / Javascript
Then select the part to be formatted, that is, to make the indentation of the code look good, right-click / format menu/reIndent selection
However, if your code is one line, it is not according to the semicolon of the sentence. It doesn't seem to be working.
5) copy the path of the current edit file if you want to do something else with the current file, you need the path of this file, this
The function does not have to click on the path point to right-click copy file path/name.
6) copy the path of the current editing file:: right-click copy file path/name
7) Open the file in the content of the file: if the content of the file contains "c:test.txt" or "http://www.test.com/js/test.js""
This kind of content. You can position the mouse over it and click the right button. There will be multiple options at the top of the pop-up menu
"c:test.txt" or "http://www.test.com/.../test.js, Click it to open the corresponding file."
Adjust, add syntax highlighting
Advanced/configuration/syntax Highlighting Click open after full path name for word list below
The open file, such as d:Program FilesUltraEditWORDFILE.TXT, is the configuration file highlighted by UE syntax
/ L1 is the first language, and / L2 is the second. Currently, these word files can be downloaded from the following link to
Http://www.ultraedit.com/index.php?...id=40#wordfiles
When using it, download the corresponding word file, copy it, and paste it into d:Program FilesUltraEditWORDFILE.TXT. Note that the initial / L1 modification matches your existing system. It seems that the display of xml.xsl is not very good and accurate.
Run the dos command to get the result directly
F9, a window will pop up for you to enter commands and working directories. For example, dir c: will list the directory of disk c. If you want to send a list of directories to your friends, you can use this simple method in addition to copying it from the dos window. Add a simple column editor. The result is even better.
Built-in ascii table
View/ascii table
Sometimes you need to know the ascii value of a letter, and you can find it from here.
! It's 33.
An is 65
. . .
You can see the built-in multiple clipboards by right clicking.
Clipboards, which has 10 clipboards built in. Windows's copy is supposed to copy only one content. If you want to copy multiple contents and paste them according to different situations, these 10 clipboards should be enough for you. The number key of ctrl+0-9 is to switch between clipboards. For example, ctrl+1, then copy the content "a"; ctrl+2, and then copy the content "b". If you want to paste a, you have to press ctrl+1 and then ctrl+v, and ask for paste.
B, just click ctrl+2 and then ctrl+v. Sometimes I accidentally change the clipboard and wonder that what I copied from somewhere else can't be pasted. We should pay attention to this situation.
Ctrl+N
File New
Create a new document file
Ctrl+O
File Open
Open an existing document file
Ctrl+Q
File Quick Open
Open an existing document without showing File Open dialog
Ctrl+F4
File Close
Close an existing document file
Ctrl+S
File Save
Save the active document
F12
File Save As
Save the active document as a new file
Ctrl+P
File Print
Print the active document
Ctrl+X
Edit Cut
Cut text from the document into the clipboard
Ctrl+C
Edit Copy
Copy text from the document into the clipboard
Ctrl+V
Edit Paste
Paste text from the clipboard into the active document
Ctrl+0-9
Edit Select Clipboard
Select active clipboard
Ctrl+A
Edit Select All
Select All text in the active document
Ctrl+Z
Edit Undo
Undo the last action if possible
Ctrl+Y (previously Ctrl+A)
Edit Redo
Reverse the last Undo action if possible
Ctrl+J
Edit Select Word
Select the current word (same as double click)
Ctrl+E
Edit Delete Line
Delete line the cursor is on
Ctrl+F11
Edit Delete to Start of Line
Delete from the cursor to start of line
Ctrl+F12
Edit Delete to End of Line
Delete from the cursor to end of line
Ctrl+W
Toggle Word Wrap
Toggle Word Wrap on/off
F7
Edit Insert Time/Date
Insert time/date at cursor
Alt+F3 or Ctrl+F
Find
Find a character string
Ctrl+F3
Find Prev
Repeat last find toward beginning of file
F3
Find Next
Repeat last find toward end of file
Ctrl+B
Match Brace
Find matching brace (, [, {or},],)
Ctrl+R
Replace
Find and replace a character string with another
Ctrl+G
Goto
Goto the specified line (or HEX address)
Ctrl+U
File Tree View
Toggle File Tree View
Ctrl+F8
Tag List
Toggle Tag List
Ctrl+T
Reformat Paragraph
Reformat the current paragraph or selected text
Ctrl+F5
Format To Lower
Convert selected text to lower case
ALT+F5
Format To Upper
Convert selected text to Upper case
F5
Format Capitalize
Capitalize first character of each word in selected text
Shift+F5
Format Invert Case
Invert case of all characters in selected text
Ctrl+K
Edit Spell Check
Invoke the spelling checker
ALT+C
Column Mode
Toggle column/block mode on and off
Ctrl+Backspace
Delete previous word
Delete the word preceding the cursor
Ctrl+Delete
Delete next word
Delete the word following the cursor
Ctrl+I
Insert Literal Character
Insert a literal character at the cursor position
INS
Insert/Overstrike Mode
Toggle between Insert and Overstrike mode
Ctrl+H
HEX Edit
Toggle HEX editing mode
Ctrl+D
HEX Insert/Delete
Insert or delete characters in HEX editing mode
Ctrl+F2
Set Bookmark
Toggle bookmark on and off
F2
Goto Bookmark
Goto next bookmark
Ctrl+M
Macro Play
Replay a macro
Ctrl+L
Macro Play Multiple Times
Replay a macro the specified number of times
Ctrl+F6
Next Window
Make the next document window active
Ctrl+Shift+F6
Previous Window
Make the previous document window active
Alt+F4
Exit UltraEdit
Exit UltraEdit
Alt+0-9 or Shift+Alt+0-9
Insert Template
Insert user defined template
F9
DOS Command
Run DOS Window command
Ctrl+F9
Last DOS Command
Repeat last DOS Window command
F10
Execute Window Program
Execute Windows Program
Ctrl+Shift+A
Inserts? Character
(As ANSI or ASCII based on the font)
Ctrl+Shift+A (Caps Lock on)
Inserts? Character
(As ANSI or ASCII based on the font)
Ctrl+Shift+O
Inserts? Character
(As ANSI or ASCII based on the font)
Ctrl+Shift+O (Caps Lock on)
Inserts? Character
(As ANSI or ASCII based on the font)
Ctrl+Shift+U
Inserts ü character
(As ANSI or ASCII based on the font)
Ctrl+Shift+U (Caps Lock on)
Inserts ü character
(As ANSI or ASCII based on the font)
Ctrl+Shift+S
Inserts? Character
(As ANSI or ASCII based on the font)
Ctrl+Shift+S (Caps Lock on)
Inserts? Character
(As ANSI or ASCII based on the font)
Ctrl+Up
Scroll Up
Scroll up one line keeping cursor in view
Ctrl+Down
Scroll Down
Scroll down one line keeping cursor in view
F4
Change Focus
Toggle focus between active file and Tree View if shown
F8
Display Function List
Display Function List
Alt+Right
Next Paragraph
Position cursor at first not space character of next paragraph
Alt+Left
Previous Paragraph
Position cursor at first not space character of current paragraph (if positioned mid-paragraph) or previous paragraph
Alt+Page Up
Top of Window
Position cursor beginning of first line in of the display
Alt+Page Down
Bottom of Window
Position cursor beginning of last line in of the display
Alt+'-' (Numeric Keypad'- 'only)
Scroll to Top
Position line with cursor at top of window
Alt+'+' (Numeric Keypad'+ 'only)
Scroll to Bottom
Position line with cursor at bottom of window
Alt+'center' or Alt+ "*" (Numeric Keypad'* 'only)
Scroll to Center
Position line with cursor at center of windo
Ctrl+'1' (Numeric Keypad'1' only)
End of previous word
Position the cursor at the end of the previous word
Ctrl+'2' (Numeric Keypad'2' only)
End of next word
Position the cursor at the end of the next word
(original address: http://my.eoe.cn/lovezyh/archive/1616.html)
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.