sublime 安装配置

来源:互联网 发布:amd显卡优化 编辑:程序博客网 时间:2024/06/03 13:30

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

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.listDev    echo "deb https://download.sublimetext.com/ apt/dev/" | sudo tee /etc/apt/sources.list.d/sublime-text.listUpdate apt sources and install Sublime Textsudo apt-get updatesudo 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全部转空格

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


原创粉丝点击