sublime 安装配置

每次重装系统或者啥意外情况就导致编辑器要重新安装配置,保存下来方便以后使用

ubuntu安装

Install the GPG key:

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -

Select the channel to use:

Stable

    echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

Dev

    echo "deb https://download.sublimetext.com/ apt/dev/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

Update apt sources and install Sublime Text

sudo apt-get update
sudo apt-get install sublime-text


配置

{
"draw_white_space": "all",               //显示空格
"font_size": 15,
"highlight_modified_tabs": true,
"ignored_packages":
[
    "Vintage"
],
"line_padding_bottom": 2,
"line_padding_top": 2,
"theme": "Adaptive.sublime-theme",
"expand_tabs_on_save": true,              //保存时去除多余空格 
"translate_tabs_to_spaces": true,         //tab转空格
"trim_trailing_white_space_on_save": true //保存时去除末尾空格
}

大部分的编辑器快捷键都是一样的,但是sublime 有几个快捷键必须知道

ctrl + p 查找文件

ctrl + r 查找函数

shift + 鼠标右键  区域选择

alt + -  回到上一个视图

右下角有个 space按键,点进去有一个convert indentation to spaces,可以方便的把tab全部转空格

鼠标右键点击左边的代码目录,可以方便的在目录中搜索。


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值