Skip to content

Instantly share code, notes, and snippets.

@liuxd
Last active November 9, 2018 01:19
Show Gist options
  • Select an option

  • Save liuxd/98c6e23a5bb3e88f741c4e79e7b3d56a to your computer and use it in GitHub Desktop.

Select an option

Save liuxd/98c6e23a5bb3e88f741c4e79e7b3d56a to your computer and use it in GitHub Desktop.
[Sublime Text] #Tips

在文件夹内搜索时忽略某些文件

{
    "file_exclude_patterns":
	[
		".tags",
		".tags_sorted_by_file"
	],
}

设置字体

{
	"font_size": 14.0,
	"font_face": "Monaco",
}

自动删除行尾空格

"trim_trailing_white_space_on_save": true,

设置代码高亮

[View] -> [Syntax] -> [Open all current extension as ...] -> 选择具体的高亮方案。

这样就不用每次都手动切换高亮方式了。

使用ctags

安装

  • brew install ctags
  • Preference -> Package Control, 输入:Install,选择 Install Package
  • 输入ctags,选择第一个。

配置

  • 终端输入:which ctags,获得ctags可执行文件路径。
  • Preference -> Package Setting -> Ctags -> Setting - Default,将ctags文件路径配置到command下。autocomplete的值改为true
  • Preference -> Package Setting -> Ctags -> Mouse Binding - Default,修改第一个modifiers的值为:["command"]

使用

  • 在左侧项目文件夹点鼠标右键,选择:Ctags:Rebuild Tags
  • command + 鼠标左键点击要跳的类或者方法即可跳转。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment