Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Increase number of recent projects in Sublime Text 2?

Tags:

Is it possible to increase the number of recent projects that appear in the Projects -> Recent Projects menu in Sublime Text 2? I have searched through the settings and I haven't found anything.

like image 483
Steve Sanders Avatar asked Apr 02 '13 16:04

Steve Sanders


People also ask

How do I add multiple projects in Sublime Text 3?

There are 2 ways that you can do is. 1) Select the option from Project -> Add project to folder and select project menu. 2) You can also drag your folder to the sublime.

What are sublime projects?

Projects in Sublime are contained in sublime-project files, and allow you to: Control what folders are present in the project. Per folder control of what files and folders from within are rejected from the project or included in the project. Can contain settings that apply only to files open in that window.

How do I run a sublime text project?

Sublime Text is able to run build programs such as 'make', either when a key in pressed (F7 by default), or when a file is saved. The build system to use can be select from the Tools/Build System menu. If a project is open, the selected build system will be remembered for the project.


1 Answers

Edit this file:

~/Library/Application Support/Sublime Text 2/Packages/Default/Main.sublime-menu 

At around line 715 you'll see this:

"caption": "Recent Projects",             "mnemonic": "R",             "children":             [                 { "command": "open_recent_project", "args": {"index": 0 } },                 { "command": "open_recent_project", "args": {"index": 1 } },                 { "command": "open_recent_project", "args": {"index": 2 } },                 { "command": "open_recent_project", "args": {"index": 3 } },                 { "command": "open_recent_project", "args": {"index": 4 } },                 { "command": "open_recent_project", "args": {"index": 5 } },                 { "command": "open_recent_project", "args": {"index": 6 } },                 { "command": "open_recent_project", "args": {"index": 7 } },                 { "command": "open_recent_project", "args": {"index": 8 } },                 { "command": "open_recent_project", "args": {"index": 9 } },                 { "caption": "-" },                 { "command": "clear_recent_projects", "caption": "Clear Items" }             ] 

Add additional lines of

{ "command": "open_recent_project", "args": {"index": n } }, 

I.E.

"caption": "Recent Projects",             "mnemonic": "R",             "children":             [                 { "command": "open_recent_project", "args": {"index": 0 } },                 { "command": "open_recent_project", "args": {"index": 1 } },                 { "command": "open_recent_project", "args": {"index": 2 } },                 { "command": "open_recent_project", "args": {"index": 3 } },                 { "command": "open_recent_project", "args": {"index": 4 } },                 { "command": "open_recent_project", "args": {"index": 5 } },                 { "command": "open_recent_project", "args": {"index": 6 } },                 { "command": "open_recent_project", "args": {"index": 7 } },                 { "command": "open_recent_project", "args": {"index": 8 } },                 { "command": "open_recent_project", "args": {"index": 9 } },                 { "command": "open_recent_project", "args": {"index": 10 } },                 { "caption": "-" },                 { "command": "clear_recent_projects", "caption": "Clear Items" }             ] 

Now you have 11 recent projects

like image 184
AGS Avatar answered Oct 06 '22 04:10

AGS