[quote]F12 key allows you to open the current file in browser. If you want to add a url to that feature:
Open the Settings folder: …/Sublime Text 2/Packages/…/Settings/
Create a file called “SideBarEnhancements.json”
Add your paths and URLs with the following structure:[/quote]
I have to assume that …/Sublime Text 2/Packages/…/Settings/ means:
C:\Users\MyName\AppData\Roaming\Sublime Text 2\Packages\SideBarEnhancements
There isn’t a settings folder in there, so I created one and added the SideBarEnhancements.json file.
I don’t know what to put in these settings though…
I simply want to open the file using localhost and I already have the settings you mentioned in this post setup in my project and they worked just fine until the other day…
[quote=“tito”]The Settings folder is located in the Packages parent folder:
…/Sublime Text 2/Packages/**…/**Settings/[/quote]
The Packages parent folder is simply Roaming/Sublime Text 2, so to direct people to the Settings folder in that folder why not just say Sublime Text 2/Settings ?
I’m still unclear as to what to actually put in the json file.
[quote]The Packages parent folder is simply Roaming/Sublime Text 2, so to direct people to the Settings folder in that folder why not just say Sublime Text 2/Settings ?
[/quote]
Because some people confuse the application folder with the user folder.
Is not difficult to navigate to the packages folder and then typing “…” (move one up?) and then “Settings”.
[quote]I simply want to open the file using localhost and I already have the settings you mentioned in this post setup in my project and they worked just fine until the other day…
[/quote]
OK, thanks for the help. I now have a completely new system, built a brand new computer, and so everything is a new installation. I have done everything you’ve said and F12 is now working with the settings above, but now when I hit F12, Windows doesn’t know which program to use to open the file. It’s not opening properly in localhost, instead the dialogue to choose which program to open .php files shows up. I tried choosing Chrome, but that only opens the code in the browser window, not the site itself. I’m sure I must just be missing something I had previously setup, but I’m not sure what. I’ve added my www directory to my Apache httpd.conf file and so when I browse to localhost in my browser I can see my files in “My Projects” list and they open properly from there, but still not from Sublime.
It also contains my (hopefully correct) findings on the specifics and potential pitfalls of the F12 and Open With features.
While written in part from the perspective of OS X, I hope they are useful in general.
Hello, many thanks for so detailed issue. I fixed most of the bugs you mentioned about the F12 key.
Now this pluing try to call the browser directy instead of using “webbrowser” module.
If the browser is not found, please post the path to the browser here, I’ll be happy to add it.
About updating the readme.md file, i added some of the things you mentioned, but please, fork the project and add anything you think is important. Contributions welcome.
when i use find advanced->in paths containing…
the search result for example like this
4 matches in 1810 files for term "listItem" under
"E:\www\toko-inventory"
E:\www\toko-inventory\application\controllers\bItem\listItem.php
E:\www\toko-inventory\application\controllers\bItemStock\listItemStock.php
E:\www\toko-inventory\application\views\bItem\listItem.php
E:\www\toko-inventory\application\views\bItemStock\listItemStock.php
how can i open up this couple of file in new tab? what shortcut keys?
been searching for this, but got no answer…
i am on windows
This is doing my head in. It can’t be this difficult, especially when it worked perfectly fine before.
On a similar but somewhat unrelated note, I had my last computer set up so that when I double clicked a PHP file, it would open in my browser at localhost/website/filename.php and for the life of me I can’t remember how I set that up, but it was immensely useful. If anyone here can tell me how I might have done this previously it would be greatly appreciated because I simply can’t remember and haven’t been able to find the answer on Google.
is the correct case. But it doesn’t make a difference what case I use. I’ve tried all caps, mixed case, all lower case. In fact it doesn’t matter what I put here. I can type anything, leave it blank, write a poem, etc. the result is the same. Hitting F12 opens the file in Firefox at:
Sorry for this stupid question, but I didn’t find anything about it.
I like to use my Editor without a Mouse and I’m wondering if it’s not possible to focus the sidebar?
While writing something in the editor I want to focus the sidebar, navigate with cursor-keys and open the context menu.
Is this possible?