How to edit a native build system in Sublime Text 2?
Asked Answered
B

4

23

Ok this is very trivial question, but just cannot find answer anywhere.

I know there must be a JSON file with all the build systems somewhere, but I just cannot find it?

Bedstraw answered 30/11, 2012 at 20:36 Comment(0)
J
24

Here is the doc on ST2 build systems

The Ruby build file, for instance, is located here:

~/Library/Application Support/Sublime Text 2/Packages/Ruby/Ruby.sublime-build

Jessalin answered 30/11, 2012 at 21:7 Comment(3)
You shouldn't edit the default, but instead make a copy in your User preferences. This will supersede the default, and be retained as you upgrade Sublime.Utterance
but what should I doing with long list unnecessary default build systems?Beset
See: This Answer for an easy way to edit default files without overwriting them. ( as mentioned in the first comment on this answer )Conglomeration
P
12

Mac:

Preferences ► Browse Packages will open the finder window where all the foo.sublime-build files are stored.

Build sys scripts you have created yourself should be in:

/Users/YOURUSERNAME/Library/Application Support/Sublime Text 3/Packages/User/

Pellucid answered 25/3, 2015 at 16:40 Comment(0)
R
3

As dbw said, basically you should make a copy of default setting file to your User folder and edit it to override default one. And on ST3 most default setting files are packaged, use PackageResourceView will make your work easier.

For example edit default ST3 python buid setting on Windows:

  • ctrl+alt+p, type "prv" and select "open" to call PackageResourceView's open.
  • select "python" > "Python.sublime-build"
  • notice default file path is "...\Sublime Text 3\Packages\Python\Python.sublime-build", so create a user copy to Users "\AppData\Roaming\Sublime Text 3\Packages\Python\Python.sublime-build" and edit it.
Rech answered 12/5, 2016 at 1:43 Comment(0)
T
1

In sublime use this step

Tools -> Build System -> New Build System

Than a new build file will be opened . On saving this file , sublime will prompt the file dialogue option to save the file . Than you can see the location where sublime saves all the native build files . From this location you can edit the existing native build files .

Totaquine answered 9/3, 2015 at 11:21 Comment(1)
not really, that only opens a directory where all user defined stuff savedDore

© 2022 - 2024 — McMap. All rights reserved.