天天看點

SlickEdit的使用技巧 (轉)

也不用 訂閱

在Linux開發,例如什麼strlen等函數,直接F1跳到man page,實在是太友善了。而且它還在你輸入左括号以後馬上就自動提示函數原型,基本查man了。 假設你的函數是select,那麼F1預設可能是跳到 man 1 page,那麼就直接在指令行輸入 man 2 select 就可以了。 不過有點煩人的是,在man page裡面作了一下操作,然後關閉的時候老是提示我是否需要儲存。

. 如果你使用C/C++,那麼可以考慮将 quick-refactring 中的 rename 綁定到一個快捷鍵上。指令叫 "refactor-quick-rename",現在要改個結構中的名字太容易了。雖然SE自己說這個功能并不是特别嚴格,總比查找/替換強多了,我自 己使用成功率很高。其他的refactory我用得很少。

========================================================================================================

. SlickEdit 設定:

   字型:

Tools->Options->Font

個人覺得最好看的是FixedSys。

顯示改動過的行标記:

Tools->Options->File Extension Setup

Advanced-Color coding-Modified lines

自動在儲存的時候清除修改标記:

Tools->Options->File Options

Save-Reset line modify

這個标簽頁還有兩個實用的選項:

Expand tabs to spaces,儲存時把Tab變成空格(有的地方要求必須用空格縮進)

Strip trailing spaces,删掉行末尾的空白

快點顯示Symbol的代碼資訊:

下面的Symbol視窗類似與Source Insight的上下文視窗,會顯示目前函數或者宏的代碼。

Tools->Options->Tagging Options

Updtae toolbars after ms idle:

縮短顯示代碼的速度。我用150。機子夠快扛得住就弄小點。

修改該死的自動文法模闆:

Tools->Options->File Extension Options

Indent-Syntax expansion-Minmum expandable keyword length:

建議設定為3,如果為預設的1的話,你根本不能用i做變量。因為隻要i起頭後面一個空格就是一個if () {},吐血。

滑鼠移到函數或者辨別符上面顯示資訊:

Tools->Options->File Extension Options

Tagging-Show info for symbol under mouse

這部分其他的鈎也可以選上,減輕工作量啊。

對目前檔案類型都顯示行号:

Tools->Options->File Extension Setup

General-Display line numbers

修改行号顔色:

Tools->Options->Color

不是Line Number,而是Line Prefix Area~~吐血 -_-!

改GCC的設定:

必須在建立了GNU C/C++項目後才能在Build裡面找到GNU C Options

設定項目的Build之類的菜單指令:

Project->Project Properties->Tools

選中一個Configuration以後就能配置編譯器和調試器

另外,在下面的Build視窗可以直接敲指令。比如make,dir什麼的,很友善

同時啟動多個SlickEdit

使用隐藏的指令開關“+new”即可。隻要把SlickEdit的快捷方式修改成這樣:

"E:\Program Files\SlickEdit\win\vs.exe" +new

解決Slickedit某些視窗字型模糊的問題

比如Open Form的視窗,

用UE打開vs.exe、vsapi.dll兩個檔案,查找“OEM Fixed Font”,會找到有OEM Fixed Font..Terminal的地方。把Terminal改成Fixedsys,注意要用覆寫模式,不能改變了檔案的長度,然後存盤即可。

将Slickedit的Projects資源清單切換成檔案夾模式

Slickedit的檔案排列是按照Source,Head之類的分的,很不習慣,把它改成按照檔案夾結構

在Projects視窗中點選一個vpj檔案,按右鍵;選擇Auto Folder→Directory View,會出來一個警告框。再點OK就好了

Workspace分類管理

Workspace多了以後分類管理會比較友善

Project->Organize all workspace,可以用目錄的形式對workspace進行管理,

注意這裡并不會改變你workspace檔案的位置,隻是在slickedit裡面的分類而已。

4. 不愧是最貴的大型編輯器(一個編輯器2xx美刀~~),功能極其強大。但是界面設計極其失敗。很多設定都不知道再哪裡找,翻來翻去才在奇怪的地方找到~~這裡總結幾個常用的詭異設定。

字型:

Tools->Options->Font

個人覺得最好看的是FixedSys和宋體。不能用新宋體,儲存不了設定(v9)。

顯示改動過的行标記:

Tools->Options->File Extension Setup

Advanced-Color coding-Modified lines

配合自動在儲存的時候清除修改标記(FT,隔得這麼遠!):

Tools->Options->File Options

Save-Reset line modify

還有兩個實用的選項:

Expand tabs to spaces,儲存時把Tab變成空格(有的地方要求必須用空格縮進)

Strip trailing spaces,删掉行末尾的空白

快點顯示Symbol的代碼資訊:

下面的Symbol視窗類似與Source Insight的上下文視窗,會顯示目前函數或者宏的代碼。用Eclipse的時候發現有這個真是好用死了,離不開了:

Tools->Options->Tagging Options

Updtae toolbars after ms idle:

縮短顯示代碼的速度。我用100。機子夠快扛得住就弄小點。當然有人受不了寫代碼的時候下面花花綠綠變來變去,就弄長點。

去掉該死的自動文法模闆:

Tools->Options->File Extension Options

Indent-Syntax expansion

(這東西很煩,弄得你根本不能用i,p做變量。因為隻要i起頭後面一個空格就是一個if () {},吐血)

滑鼠移到函數或者辨別符上面顯示資訊(贊!):

Tools->Options->General

Context Tagging-Show info for symbol under mouse

這部分其他的鈎也可以選上,減輕工作量啊。隻是Insert Space就不要選了。還有Completion on space看個人喜好。

對目前檔案類型都顯示行号:

Tools->Options->File Extension Setup

General-Display line numbers

修改行号顔色:

Tools->Options->Color

不是Line Number,而是Line Prefix Area~~吐血 -_-!

改GCC的設定:

必須在建立了GNU C/C++項目後才能在Build裡面找到GNU C Options

設定項目的Build之類的菜單指令:

Project->Project Properties->Tools

選中一個Configuration以後就能配置編譯器和調試器

另外,在下面的Build視窗可以直接敲指令。比如make,dir什麼的,很友善。

最後,誰能找到好用的V10版本,10界面漂亮而且Dock視窗更好用。但是我下的XX版隻要建立GNU C/C++項目就崩掉。打開現存的GCC項目一調試也崩 T_T,求好用的XX。

====================================================================================================

slickedit中如何讓每打開一個檔案都顯示每行的行号?

每次都選擇View->Line numbers好麻煩 :blush;

bahamut

2006-03-26, 13:18:03

tools->options->file extenstion setup->general tab->display line number

SlickEdit的使用技巧 

sagisaga 

SE不愧是最貴的大型編輯器(一個編輯器近$300),功能極其強大。 

1  背景設定

如果你不喜歡預設的配色方案,那麼可以從Tools->Options->Color->Schemes中選擇一種配色方案。 OS/390 是比較不錯的一個,我在Emacs下就喜歡使用這種顔色配置。 

2  快速移動

2.1  查找替換

查找和替換的快捷鍵和Windows下大多數編輯器十分類似。 

   1. 查找:Ctrl+f(find)。 

   2. 跳轉:Ctrl+g(go)/Ctrl+shift+g。 

   3. 替換:Ctrl+r(replace)。 

2.2  書簽

有兩種方法設定書簽:

   1. 使用指令:Esc進入底行指令模式(類似于Emacs和Vim),sb(SetBookmark)給目前行設定一個書簽, gb(GotoBookmark)跳轉到相應書簽。 

   2. 使用快捷鍵:Ctrl+J(Shift+j)打開設定書簽的對話框,進行設定。 

2.3  緩沖區

SlickEdit中的緩沖區(Buffers)類似于Emacs:每個打開的檔案就是一個緩沖區。

   1. 上一個緩沖區:Ctrl+p(Previous)。 

   2. 下一個緩沖區:Ctrl+n(Next)。 

   3. 列舉所有的緩沖區:Ctrl+B(Shift+b)。 

   4. 關閉緩沖區/檔案:F3。 

2.4  其他

   1. 行跳轉:Ctrl+j(jump)。 

   2. 括号比對:Ctrl+](類似于VC)。 

   3. 更改目錄:Ctrl+d(directory)。 

3  編輯功能

   1. 預設的編輯功能:複制:Ctrl+c,粘貼:Ctrl+v,剪切:Ctrl+x等。 

   2. 列編輯功能:把文本作為“文本塊”來處理,和Emacs類似。Ctrl+b -> 移動光标標明文本塊, 然後執行正常的編輯 -> Ctrl+u(Unselect)反選擇,釋放區域。 

   3. 選擇行:Ctrl+l(VC中是剪切一行),Ctrl+u 反選擇。 

4  模拟器

SlickEdit中有SlickEdit,Vi,Emacs和VC的模拟器,轉換快捷鍵十分友善,尤其是對于用慣了VC的人,VC 模拟器和真正的VC沒有什麼差別。 

Tools->Options->Emulations 中可以選擇。 

5  配置編譯器

和外部編譯器的配置目前還不熟悉,但對于TtH來說,有一個變通的方法:

   1. Esc打開底行指令模式; 

   2. tth -u :打開TtH編譯; 

   3. Tab :SE會自動彈出一個顯示目前檔案夾下所有檔案的對話框,目前檔案在最前面,標明即可。 

不過,編輯Tex檔案最合适的編輯器還是WinEdt:專業而且友善。 

待續... ... 

====================================================================================================

SlickEdit 11(源代碼閱讀利器 one tool for all OS)

分類:C/C++

2007.3.13 10:43 作者:守望者 | 評論:0 | 閱讀:1229

http://www.programmersparadise.ca/PPI_CA/Product.aspx?sku=M39%20029W

SlickEdit 11

Advanced Code Editing for Power Programmers

SlickEdit is a multi-platform, multi-language code editor that enables power programmers to create, navigate, modify, and debug code faster and more accurately. Whether used as a complementary editor or as a stand-alone development tool, SlickEdit’s quick response time and many useful features allow developers to get more done in less time with the power to meet ever more aggressive deadlines.

SlickEdit has the power to handle your large code base and challenging programming tasks. SlickEdit gives the user unmatched flexibility by allowing customization to fit any coding style as well as emulations for 13 editors providing familiar keystrokes and behaviors. Customize SlickEdit to match your coding style and the way you work. Set preferences for indenting, brace style, and other code format options. SlickEdit supports over 40 languages on 7 platforms. For the ultimate in extensibility, use Slick-C to write your own macros that add new capabilities to SlickEdit.

Speed

SlickEdit has the quick response and timesaving operations that allow you to get more done in less time. You can launch SlickEdit, edit a file, and exit in less time than it takes for other IDEs to finish loading. Our Context Tagging? engine parses your code and builds a database of symbols and references. This allows you to quickly navigate through your code, jumping instantly from a symbol to its definition or any reference. You can preview a symbol’s definition simply by placing the cursor within it. SlickEdit includes many operations, such as auto-completions and syntax expansion, that save you time by reducing the number of keystrokes you type. This also reduces compiler errors due to typos. SlickEdit formats your code as you type, or when you paste lines of code, so you don’t waste time manually formatting your code. Automate tedious or frequently-performed tasks with recorded macros and programmable macros. The SlickEdit command line lets you launch most editor operations without taking your hands off the keyboard.

Power

SlickEdit has the power to handle your large code base and challenging programming tasks. Create a workspace with many subprojects and thousands of files, and SlickEdit still opens quickly. Edit files up to 2 GB in size. DIFFzilla? compares files and directories, letting you edit files in the diff view. File differences are updated as you type. SlickEdit’s powerful project management system incorporates source control and a highly configurable build system. You can easily integrate any command line operation, running it from within SlickEdit and processing error messages in the output. Use syntax-driven search to include or exclude specific code elements such as comments, symbols, and strings.

Flexibility

Customize SlickEdit to match your coding style and the way you work. Set preferences for indenting, brace style, and other code format options. SlickEdit uses these settings when manipulating your code. SlickEdit provides emulations for 13 editors, providing familiar keystrokes and behaviors. Launch operations using menus, toolbars, the SlickEdit command line, or a key binding. Bind commands to any key. SlickEdit supports over 40 languages on 7 platforms.

Viewing code is configurable with dockable and auto-hide windows, code collapsing, soft wrap, hex views, optional line numbers, and display of special characters. For the ultimate in extensibility, use Slick-C to write your own macros that add new capabilities to SlickEdit.

Specifications

System Requirements

    * Microsoft Windows XP, 2000, NT, Me, 98 170 MB disk space

    * Linux Kernel 2.4 and later - 200 MB disk space

    * AIX 5 and later - 250 MB disk space

    * HP-UX 11 and later - 270 MB disk space

    * IRIX 6.5 and later - 280 MB disk space

    * Solaris SPARC 7 and later - 240 MB disk space

    * Mac OS X v10.3 and later - 190 MB disk space, X11 for Mac OS X

Note: The Mac OS X version supports universal binaries to run on Intel and Power PC Macs. 

繼續閱讀