I suggest an alternative solution to your question, from my point of view, much more practical / useful and is that I use sublime text for 2 years and I think I have not needed something that I can not use or get sublime.
Therefore, in everything related to browser development I recommend using LiveReload.
link
Why?
Well, it's a plugin/addon/libreria
of Sublime Text. Your goal is to refresh the browser every time you perform the save action on your project.
Let's say that you synchronize sublime text with your browser in Firefox, Chrome y Safari
, that is, for the most common operating systems in browser development / programming.
Each time you save your project, it is updated in the browser, makes a simple refresh. By the way, mention that browser cookies can not do the correct refresh as is logical, it seems logical / silly what I say but when you've been using this for years ... you get used to it so much that it's almost "mandatory" that each Once you keep sublime ... YOU MUST! reflect .... and sometimes if you forget to remove cookies, you can have a bad time. "True story"
My definitive solution was to work at MODO INCOGNITO.
Yes, you can also use it in incognito mode, LiveReload =) could not be better.
How to install it?
1-First to have Sublime Text installed
2-Install Package Controll
The Package Control is a sublime text library that allows you to manage the packages or other plugins / adons on sublime text.
This is going to permitir instalar libreria de LIVERELOAD
on Sublime text.
Installing the Package control is extremely simple:
2.a) In sublime text, above you go to views > show console
(Console opens)
2.b) In the console of sublime text you paste the text copied from this web.
* For both sublimetext2 and SBT3, choose the one you have.
link
2.c) Restart the sublime text when you make installations so that they have the correct effect and avoid failures.
3) Now INSTALAR LiveReload
ABOUT Sublime Text
3.a) We started again Sublime Text
3.b) Command Ctrl + Shift + P
, a window opens in the form of INPUT
.
3.b) Above you write install pack
and it should be enough to see Package Control: Install Package
, which is the package installer manager for sublime.
You scroll with the fellas and press enter.
3.c) When you select it (You need internet connection), a list appears that are all the packages that you can install in sublime text.
3.d) We must look for LiveReload plugin
and press enter on that concretely.
In the lower left part of the text editor Sublime Text you will see the progress of the installation.
3.e) Once finished and installed, restart sublime text again.
4) Now Configurar LiveReload de Sublime
4.a) You access Preferences > Package settings > LiveReload > settings-Default
4.b) In the file LiveReload.sublime-settings
, you must have the following code, add everything or what you need:
{
"enabled_plugins":[
"Refresh",
"SimpleReloadPlugin",
"SimpleRefresh"
]
}
5) So far we have finished with sublime text. Now the browser is left.
5.a) Search Livereload + "Your browser" (Ex: Livereload Chrome)
5.b) Install the plugin of your browser, in this case we will do it with chrome.
5.c) Restart your browser
5.d) In chrome, you will see just above to the right of the navigator a circle formed by two arrows representing a refresh or recharge cycle with a point in the center.
6) Now configure the browser plugin
6.a) In Google chrome this is as simple as right clicking on the livereload icon, on the top right and giving "manage extension or manage extension".
6.b) We must confirm that chrome extension is active, and DEBES MARCAR las 2 casillas pequeñas de "permitir en incognito" y "todos los accesos a url de archivos".
6.c) Once you have checked the boxes. EVERYTHING IS READY.
7) How to proceed:
7.a) FIRST OPEN sublimetext the project.
7.b) SECOND you open your browser and go to your project URL Localhost / project / ..
7.c) TERCERO y ULTIMO
, you make clic IZQUIERDO encima del simbolo del livereload en el navegador
, and you will see how the little dot in the center of the circle is colored and marked in dark.
7.d) Now we can say that your browser is synchronized with Sublime Text.
7.e) Cada vez que GUARDES el proyecto
, you can use the command Ctrl + S
will automatically refresh and update the browser.
I hope it helps, personally I think it is but one of the best plugin to work with browser code using Sublime Text.
Greetings!
PS: Your question is that by doing a click, or something you can enter the URL of the web where you are, in this way you get practically the same every time you save the project, which we do constantly.