How to change a build version in Sublime Text 3

Artem

It looks like Sublime Text 3 uses OSX-default version of Ruby in build mode. I would like to change the version, since I'm using a newer one. I found some answers for privious version of sublime:

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

Setting and changing build systems in Sublime Text 2

Ruby, Sublime Text 2 and RVM help please!

All of them are dealing with Ruby.sublime-build file (given that I have RVM installed), but I can't this file in Sublime Text 3. May be I should change /Users/Art/Library/Application Support/Sublime Text 3/Packages/User/Ruby.sublime-settings? But any manipulations with it didn't give me a result.

Any help would be really appreciated!

Stefan

Here's what I did:

  1. select "Sublime Text" > "Preferences" > "Browse Packages ..."

    (this opens ~/Library/Application Support/Sublime Text 3/Packages)

  2. open the User directory (create it if it doesn't exist)

  3. inside User create a file Ruby.sublime-build with the following content (adjust the path):

    {
        "cmd": ["/your/path/to/bin/ruby", "$file"],
        "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
        "selector": "source.ruby"
    }
    

Your directory structure should look like this:

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

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How can I change Python version in Sublime Text 3?

How to build Scala applications in Sublime Text 3?

How to return previous version of Sublime Text 3?

Build system of Sublime Text 3 executes a different version of PHP

How to change background color of Sublime Text 3?

Sublime Text 3: how to change the size of tabs?

How to change the property "default_encoding" of Sublime Text(Version 3.1.1, Build 3176) from "UTF-8" to "ISO-8859-1"?

In Sublime Text 3, how to have shortcuts for "Build and Run" and "Build only" separately like it was in Sublime Text 2?

Sublime Text 3 and sublime-grunt-build

No Build System : Sublime Text 3

Build Pascal with Sublime Text 3

Sublime Text 3 build 3103

How to configure nodejs build plugin inside Sublime Text 3

How to get Colored Build Output from Make in Sublime Text 3?

How to create Sublime Text 3 build system which reads shebang

How to build and run C programs in sublime text 3 mac osX

How to change the font of side bar in Sublime Text 3?

How to change color of new Diff Markers in Sublime Text 3?

How to change default browser of Browsersync plugin for Sublime Text 3?

How to change the auto-complete select key in Sublime Text 3?

How to change font color for Terminus package in sublime text 3

How to change Sublime Text 3 default notes sign?

Sublime Text 3 how to change the font size of the file sidebar?

In Sublime Text 3, how can I change the comment character?

How to change the preferred encoding in Sublime Text 3 for MacOS

How to change focus from search bar to editor in Sublime Text 3?

How to change directory icon/color of specific folder in Sublime Text 3?

How to change syntax for a specific folder in Sublime Text 3

Sublime Text 3 custom build nothing happens