Skip to content

Instantly share code, notes, and snippets.

@liuhoward
Forked from Akagi201/slickedit.md
Last active June 8, 2016 18:24
Show Gist options
  • Save liuhoward/74e06bb533aa995e7058fee0be5b8aa2 to your computer and use it in GitHub Desktop.
Save liuhoward/74e06bb533aa995e7058fee0be5b8aa2 to your computer and use it in GitHub Desktop.

SlickEdit

SlickEdit

  • Editor Emulation: 可以模拟各种编辑器, 如: VIM, Emacs等, 我先选了CUA, 就是跟office word一致的快捷键方式.
  • Color Scheme: 我选择了一个墨绿色背景的 Chalkboard, google了一下发现 GitHub Gist上面有一些人自己的设置, 以后可以去参考别人的定制一下.
  • Fonts(字体): 还是选择我习惯的Consolas, 顺便用MacType渲染了一下, 弄了下Source Code Pro, 感觉和Consolas差不多(Mac下面没有consolas头疼)

Config

  1. 工具栏图标设置为小(因为工具栏都是最常用的功能实在找不到不用快捷键而使用它们的理由)
  • Menu: View -> Toolbars -> Customize... -> Options -> Options -> Toolbar button size and spacing -> Small, 勾选 Hide when application is inactive (Tools -> Options -> Appearance -> Toolbars)
  1. 字体: Consolas
  • Menu: Tools -> Appearance -> Fonts consolas, 12
  1. 逗号后面自动填充空格
  • Menu: Tools -> Options -> Languages -> All Languages -> Context Tagging -> Parameter information -> 勾选Insert space after comma
  1. 高亮当前光标下的matching symbols
  • Menu: Tools -> Options -> Languages -> All Languages -> Context Tagging -> Parameter information -> 勾选Highlight matching symbols under cursor
  1. 显示行号
  • Menu: Tools -> Options -> Languages -> All Languages -> View -> 勾选 Line numbers, Mininum width 1
  1. 高亮符号
  • Menu: Tools -> Options -> Languages -> All Languages -> View -> 勾选 Symbol coloring, 勾选 Use bold for symbol names in definitions and declarations 和 Highlight unidentified symbols, Symbol lookup: Use strict symbol lookups(full symbol analysis)
  1. 高亮修改的行
  • Menu: Tools -> Options -> Languages -> All Languages -> View -> Modified lines
  1. 高亮引用
  • Menu: Tools -> Options -> Editing -> Context Tagging -> References -> Highlight references in editor
  1. 自动在保存时清楚修改标记
  • Menu: Tools -> Options -> File Options -> Save -> Reset modified lines
  1. Context Tagging 速度
  • Menu: Tools -> Options -> Editing-> Context Tagging -> Maximums(tune for performance) -> Update after (ms) idle(0 implies no delay) -> 150
  1. 自动语法提示最少输入字母数量:
  • Menu: Tools -> Options -> Languages -> All Languages -> Auto-Complete -> Syntax expansion -> 勾选Use Syntax Expansion on space -> Minimum expandable keyword length -> 3
  1. #include自动语法提示:
  • Menu: Tools -> Options -> Languages -> All Languages -> Auto-Complete -> List symbols -> List include files after typing #include: List files after typing " or <
  1. 多开SlickEdit 在开始菜单或者快捷方式 修改 "D:\Program Files\SlickEdit\win\vs.exe" +new

  2. .h/.cpp文档切换

  • Menu: Document -> Edit Associated FIle(Ctrl + `)
  • Cmd: :edit-associated-file
  1. 折叠代码
  • 右击工具栏: Toolbars -> Selective Display
  • View-->Toolbars-->Selective Display开启
  1. 折叠单击打开(默认是双击)
  • Tools -> Options -> Keyboard and Mouse -> Advanced -> Selective Display, Expand/collapse -> Expand on single click
  1. tab缩进风格
  • Menu: Tools -> Options -> Languages -> All Languages -> Formatting -> Indent -> 勾选 Indent with tabs, Syntax indet:4(不确定, 提示与smart indent冲突了, 数目不同?)
  1. {}缩进风格
  • Menu: Tools -> Options -> Languages -> All Languages -> Formatting -> Begin/end style -> Style 2
  1. 退格键删tab
  • Menu: Tools -> Options -> Languages -> C/C++ -> 勾选Backspace at beginning of line un-indents
  1. 立即保存配置
  • Menu: Tools -> Options -> Application Options -> Exit -> Save configuration -> Save configuration immediately
  1. 配置备份 备份 C:\Users\akagi201\Documents\My SlickEdit Config\18.0.1 下面所有文件, 以后都放C盘就好了, 可以直接替换

  2. 拷贝字符串后, 仍然保持选中状态

  • Tools -> Options -> Editing -> Selections -> 取消勾选 Deselect after copy
  1. 将Slickedit的Projects资源列表切换成文件夹模式(待确认)
  • Slickedit的文件排列是按照Source,Head之类的分的,很不习惯,把它改成按照文件夹结构在Projects窗口中点击一个.vpj文件,按右键;选择Auto Folder→Directory View,会出来一 个警告框。再点OK就好了
  1. Workspace分类管理
  • Workspace多了以后分类管理会比较方便Project->Organize all workspace,可以用目录的形式对workspace进行管理,注意这里并不会改变workspace 文件的位置,只是在slickedit里面的分类而已.
  1. GCC 参数配置
  • 必须在建立了GNU C/C++项目后才能在Build里面找到GNU C Options
  1. mou_push_tag:
  • Bind到Ctrl+鼠标左键就能和SourceInsight一样可以按着Ctrl点符号就跳到定义处。不过SI在按下Ctrl的时候鼠标指针会变成小手看上去比较爽,SE的这个鼠标指针不会变化~~不过仅仅是视觉上稍有不爽,功能是一样的.

27.当前选中行出现缩进辅助框

  • Menu: Tools-->Options-->Appearance-->General Current line highlight 设置成 Syntax indent ruler
  1. 修改跳转到Symbol定义处的速度 Tools-->Options-->Editing-->Context Tagging Tagging Tool Windows项中的Updata Tool Windows after(ms) 设置成100

  2. 修改符号着色的速度 Tools-->Options-->Editing-->Context Tagging Symbol Coloring Performance项中将Update after(ms) idle的值设置成100

  3. 在C/C++中代码自适应 Tools-->Options-->languages-->Application Languages-->C/C++ -->Adaptive Formatting 勾选 Use Adaptive Formatting(重启软件后生效)

  4. 在C/C++中的代码注释格式 Tools-->Options-->languages-->Application Languages-->C/C++ -->Comments Comment line 项中 Left 项设置成//外加1个空格即// ; Location 项设置成At left margin

  5. 在C/C++中代码字符完成时,可以用TAB键切换匹配的字符 Tools-->Options-->languages-->Application Languages-->C/C++ -->Auto-Complete Options标签页中 勾选Tab cycles through choices

  6. 在C/C++中字符补全不区分大小写 Tools-->Options-->languages-->Application Languages-->C/C++ -->Color Coding 取消Tokens标签页中identifies框中Case-sensitive前面的勾选

  7. 单个文件符号着色开启 View-->Symbol Coloring 勾选Enable Symbol Coloring 勾选Highlight Unindentifed Symbols 勾选All Symbols

Refs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment