Apr 9, 2009

UltraEdit Tips

查找
如果不选择正则表达式,^p 是换行
如果选择正则表达式,\r\n 是 windows 换行,\n 是 unix 换行。

推荐使用正则表达式,并在设置中选择兼容 perl 的引擎。

删去包含特定字符的行,比如包含 bad word 的行
^.*bad word.*\r\n   替换成 空

Macro:
指一系列 Ultraedit 命令组合而成的一个宏,其基本元素还是 Ultraedit 命令。
可以开启“记录宏”,执行一系列操作,然后保存成一个宏。
注意,不是所有的 ultraedit 命令都支持。最后生成的宏可以在宏修改器里进行查看和修改。

Scripts:
指 Javascript 函数,所以很强大。

Function list:
编程时,列出用户自己编写的函数,便于查找和定位。

其他各种 tips:
UltraEdit power tips

修改 shortcut keys, menu 等
docs.google.com share backup

Shortcut Keys
Ver. 13
Shortcut           Command                   
------------------+-------------------------+
Alt+\              SearchWordCount           
Alt+0              InsertTemplate0           
Alt+1              InsertTemplate1           
Alt+2              InsertTemplate2           
Alt+3              InsertTemplate3           
Alt+4              InsertTemplate4           
Alt+5              InsertTemplate5           
Alt+6              InsertTemplate6           
Alt+7              InsertTemplate7           
Alt+8              InsertTemplate8           
Alt+9              InsertTemplate9           
Alt+Add            MoveLineToBottomofView    
Alt+C              ColumnToggleMode          
Alt+CLEAR          MoveLineToCenterofView    
Alt+DOWN ARROW     WindowNextTabDocument     
Alt+F10            PrevWindowPanel           
Alt+F11            FileCompare               
Alt+F12            FileSaveAll               
Alt+F2             SearchPrevBookmark        
Alt+F3             SearchFind                
Alt+F5             FormatToUpper             
Alt+F8             ProfileSelectMenu         
Alt+LEFT ARROW     CursorToPreviousParagraph 
Alt+Multiply       MoveLineToCenterofView    
Alt+PGDN           CursorToBottomOfWindow    
Alt+PGUP           CursorToTopOfWindow       
Alt+RETURN         ShowCharacterValue        
Alt+RIGHT ARROW    CursorToNextParagraph     
Alt+Shift+0        InsertTemplate10          
Alt+Shift+1        InsertTemplate11          
Alt+Shift+2        InsertTemplate12          
Alt+Shift+3        InsertTemplate13          
Alt+Shift+4        InsertTemplate14          
Alt+Shift+5        InsertTemplate15          
Alt+Shift+6        InsertTemplate16          
Alt+Shift+7        InsertTemplate17          
Alt+Shift+8        InsertTemplate18          
Alt+Shift+9        InsertTemplate19          
Alt+Shift+C        ProjectClose              
Alt+Shift+D        EditDuplicateLine         
Alt+Shift+F2       SearchPrevBookmarkSelect  
Alt+Shift+O        ProjectOpen               
Alt+Shift+R        RunActiveScript           
Alt+Shift+S        ProjectFilesSettings      
Alt+Subtract       MoveLineToTopofView       
Alt+UP ARROW       WindowPreviousTabDocument 
Ctrl+0             EditClipboardNormal       
Ctrl+1             EditClipboardUser1        
Ctrl+2             EditClipboardUser2        
Ctrl+3             EditClipboardUser3        
Ctrl+4             EditClipboardUser4        
Ctrl+5             EditClipboardUser5        
Ctrl+6             EditClipboardUser6        
Ctrl+7             EditClipboardUser7        
Ctrl+8             EditClipboardUser8        
Ctrl+9             EditClipboardUser9        
Ctrl+A             EditSelectAll             
Ctrl+Add           ViewCollapseAll           
Ctrl+B             SearchMatchBrace          
Ctrl+BACKSPACE     DeletePrevWord            
Ctrl+C             EditCopy                  
Ctrl+D             EditHexInsertDelete       
Ctrl+DEL           DeleteNextWord            
Ctrl+DOWN ARROW    ScrollDownLine            
Ctrl+E             EditDeleteLine            
Ctrl+F             SearchFind                
Ctrl+F10           NextWindowPanel           
Ctrl+F11           EditDeleteToStartOfLine   
Ctrl+F12           EditDeleteToEndOfLine     
Ctrl+F2            SearchToggleBookmark      
Ctrl+F3            SearchFindPrevious        
Ctrl+F5            FormatToLower             
Ctrl+F6            WindowNextWindow          
Ctrl+F7            FocusToOutputWindow       
Ctrl+F8            ViewTagList               
Ctrl+F9            AdvancedRunLastDosCmd     
Ctrl+G             SearchGoto                
Ctrl+H             EditToggleHexMode         
Ctrl+I             InsertLiteralText         
Ctrl+INS           EditCopy                  
Ctrl+J             EditSelectWord            
Ctrl+K             EditSpellCheck            
Ctrl+L             MacroPlay/Select          
Ctrl+M             MacroPlay                 
Ctrl+Multiply      ViewExpandAll             
Ctrl+N             FileNew                   
Ctrl+Numeric pad 1 CursorToEndofPreviousWord 
Ctrl+Numeric pad 2 CursorToEndofNextWord     
Ctrl+O             FileOpen                  
Ctrl+P, Ctrl+S     EditPersistentSelection   
Ctrl+Q             FileQuickOpenFile         
Ctrl+R             SearchReplace             
Ctrl+RETURN        EditInsertLine            
Ctrl+S             FileSave                  
Ctrl+Shift+0       AdvancedUserTool1         
Ctrl+Shift+1       AdvancedUserTool2         
Ctrl+Shift+2       AdvancedUserTool3         
Ctrl+Shift+3       AdvancedUserTool4         
Ctrl+Shift+4       AdvancedUserTool5         
Ctrl+Shift+5       AdvancedUserTool6         
Ctrl+Shift+6       AdvancedUserTool7         
Ctrl+Shift+7       AdvancedUserTool8         
Ctrl+Shift+8       AdvancedUserTool9         
Ctrl+Shift+9       AdvancedUserTool10        
Ctrl+Shift+F4      FileCloseAll              
Ctrl+Shift+F6      WindowPreviousWindow      
Ctrl+SPACE         AutoComplete              
Ctrl+Subtract      ViewHideShowLines         
Ctrl+T             FormatReformatParagraph   
Ctrl+U             ViewShow/HideFileTreeView 
Ctrl+UP ARROW      ScrollUpLine              
Ctrl+V             EditPaste                 
Ctrl+W             EditWordWrap              
Ctrl+X             EditCut                   
Ctrl+Y             EditRedo                  
Ctrl+Z             EditUndo                  
F10                AdvancedRunWindowsProgram 
F11                SearchFindSymbol          
F12                FileSaveAs                
F2                 SearchGotoBookmark        
F3                 SearchFindNext            
F4                 FocusToTreeView           
F5                 FormatCapitalize          
F6                 FocusNextPane             
F7                 EditInsertTimeDate        
F8                 SearchFunctionList        
F9                 AdvancedRunDosCmd         
Shift+DEL          EditCut                   
Shift+F1           EnableHelpPointer         
Shift+F2           SearchGotoBookmarkSelect  
Shift+F3           SearchFindNext            
Shift+F5           FormatInvertCase          
Shift+F6           FocusPreviousPane         
Shift+INS          EditPaste                 
------------------+-------------------------+

0 comments: