问题描述
是否可以增加出现在文件 -> 在 Sublime Text 3 (Ubuntu) 中打开最近的菜单中的最近文件的数量?
Is it possible to increase the number of recent files that appear in the File -> Open recent menu in Sublime Text 3 (Ubuntu)?
我已经阅读了 增加 Sublime 中近期项目的数量文字 2?
而且我在我的电脑上找不到这个 ~/Library 文件夹.我可以找到 ~/.config/sublime-text-3/Packages 但里面没有默认"子文件夹.
And I can't find this ~/Library folder at my PC. I can find ~/.config/sublime-text-3/Packages but there's no "Default" subfolder inside.
推荐答案
Linux 上 Sublime Text 3 中的默认包存储在(假设您使用 .deb 安装程序)/opt/sublime_text/Packages/Default.崇高包
.
The Default package in Sublime Text 3 on Linux is stored in (assuming you used the .deb installer) /opt/sublime_text/Packages/Default.sublime-package
.
Default.sublime-package
是一个 ZIP 文件,如果你打开它并将 Main.sublime-menu
文件从中提取到 ~/.config/sublime-text-3/Packages/Default/Main.sublime-menu
,然后可以按照链接答案描述的相同方式对其进行编辑.
Default.sublime-package
is a ZIP file, if you open it and extract the Main.sublime-menu
file from it into ~/.config/sublime-text-3/Packages/Default/Main.sublime-menu
, it can then be edited the same way as the linked answer describes.
或者运行以下命令,这将创建默认目录并将 Main.sublime-menu
文件提取到其中:
Alternatively run following commands which will create the Default directory and extract the Main.sublime-menu
file into it:
mkdir ~/.config/sublime-text-3/Packages/Default/
unzip -p /opt/sublime_text/Packages/Default.sublime-package Main.sublime-menu > ~/.config/sublime-text-3/Packages/Default/Main.sublime-menu
这篇关于如何增加 Sublime Text 3 中最近文件的数量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!