How to increase number of recent files in Sublime Text 3?

后端 未结 7 1932
刺人心
刺人心 2020-12-22 23:49

Is it possible to increase the number of recent files that appear in the File -> Open recent menu in Sublime Text 3 (Ubuntu)?

I have already read Increase number of

7条回答
  •  醉话见心
    2020-12-23 00:19

    On Windows 7 or 8 you:

    1. Open the following file in a ZIP/archive utility:
      C:\Program Files\Sublime Text 3\Packages\Default.sublime-package

    2. Extract only the file Main.sublime-menu into:
      %APPDATA%\Sublime Text 3\Packages\Default
      (Create the folder if necessary)

      The folder is otherwise known as:
      C:\Users\YourUsername\AppData\Roaming\Sublime Text 3\Packages\Default

    3. Open Main.sublime-menu (a JSON file) that you just extracted and alter the number of open_recent_folder and open_recent_file statements that appear, increasing the index each time.

          { "command": "open_recent_folder", "args": {"index": 0 } },
          { "command": "open_recent_folder", "args": {"index": 1 } },
          { "command": "open_recent_folder", "args": {"index": 2 } },
          { "command": "open_recent_folder", "args": {"index": 3 } },
          { "command": "open_recent_folder", "args": {"index": 4 } },
          { "command": "open_recent_folder", "args": {"index": 5 } },
          { "command": "open_recent_folder", "args": {"index": 6 } },
          ...continue as many times as necessary...
      
    4. Hit save and the menu should be instantly updated. :-)

    You can even move your recent file/folder list into the root "File" menu for easier access.

提交回复
热议问题