Skip to content

Instantly share code, notes, and snippets.

@xapou
Created April 9, 2014 16:35
Show Gist options
  • Save xapou/10289771 to your computer and use it in GitHub Desktop.
Save xapou/10289771 to your computer and use it in GitHub Desktop.
json: SideBarEnhancements for ST3
{
"public/":{
"url_testing" : "http://domain",
"url_production" : "https://domain"
}
}
@xapou
Copy link
Author

xapou commented Apr 9, 2014

Configure Open In Browser in Sublime Text with SideBarEnhancements

In Sublime Text 3, create a .sublime folder at the root of the project and put this file in it.

  1. Replace publicby the folder name matching the root of the website (eg. public in Laravel)
  2. Replace domainby your domain and you are all set.

Make sure you configured 2 shortcuts :

  • Open in Server (test env)
  • Open in Server (production env)
[
    { "keys": ["ctrl+f13"],
        "command": "side_bar_open_in_browser" ,
        "args":{"paths":[], "type":"testing"}
    },
    { "keys": ["ctrl+f14"],
        "command": "side_bar_open_in_browser",
        "args":{"paths":[], "type":"production"}
    }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment