版权声明:本文为博主原创文章,可以随便转载 https://blog.csdn.net/appleyuchi/article/details/82688406
環境:
ubuntu16.04 64位
sublime text3
Preferences->Settings->Preferences.sublime-settings--User
sublime的配置文件中增加
"hot_exit": false,
"remember_open_files": false
完整內容如下:
{
"color_scheme": "Cache/Color Scheme - Default/yuchi.tmTheme",
"draw_white_space": "all",
"expand_tabs_on_save": true,
"font_face": "WD粗钢笔行楷-凤殿优化版",
"font_options":
[
"no_bold",
"no_italic",
"no_antialias",
"gray_antialias"
],
"font_size": 16,
"hot_exit": false,
"remember_open_files": false,
"ignored_packages":
[
"Vintage"
],
"index_files": false,
"open_files_in_new_window": false,
"save_on_focus_lost": true,
"tab_size": 4,
"translate_tabs_to_spaces": true,
"update_check": false
}
然後需要編輯/usr/share/applications/sublime-text.desktop
修改如下:
[Desktop Entry]
Version=1.0
Type=Application
Name=Sublime Text
GenericName=Text Editor
Comment=Sophisticated text editor for code, markup and prose
#Exec=/opt/sublime_text/sublime_text %F
Exec=/usr/bin/subl %F
Terminal=false
MimeType=text/plain;
Icon=sublime-text
Categories=TextEditor;Development;
StartupNotify=true
Actions=Window;Document;
StartupWMClass=Sublime_text
[Desktop Action Window]
Name=New Window
#Exec=/opt/sublime_text/sublime_text -n
#Exec=/usr/bin/subl -n
Exec=/opt/sublime_text/sublime_text -n %F
OnlyShowIn=Unity;
[Desktop Action Document]
Name=New File
#Exec=/opt/sublime_text/sublime_text --command new_file
#Exec=/usr/bin/subl --command new_file
Exec=/opt/sublime_text/sublime_text -n %F
OnlyShowIn=Unity;
扫描二维码关注公众号,回复:
3237774 查看本文章