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. 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值