Sublime Forum

View in browser option disappeared from right click menu

#1

Hello, I just installed sublime and typed some html code and used the view in browser option from right click menu. After some time, the option disappeared and I can no longer see it in the right click menu.

Can someone say what is going in?

Thank you

0 Likes

#2

Did you uninstall or disable the plugin that provides that functionality?

Something else to check is that the package that provides that functionality may have the option available only for an HTML file and an empty file that hasn’t been saved yet or manually had it’s syntax set is considered to be plain text, so it might not realize what kind of file it is.

0 Likes

#3

No I did not change anything other than I have set the set syntax:html in command palette before trying out my first test html code.It worked for the first time. Later it didn’t work.
This is my first time using the editor.
How to check if the plugin is still installed/enabled? I do not have package manager installed.

0 Likes

#4

My bad; this is actually built in functionality in the Default package.

The command will only be visible when the file that you’re trying to use it for exists on disk and has an appropriate extension (one of .html, .HTML, .htm or .HTM). So if you’re not seeing it, either the file name that you’re using doesn’t have that kind of extension, or you haven’t saved the file yet.

0 Likes

#5

No I have saved it with the proper extension. I am using the same file which has worked for the first time.

0 Likes

#6

Tell us the name of your file, tell us what option you have in your context menu.

Then, you’re going to need package control. So,

  1. install it.
  2. Download PackageResourceViewer
  3. ctrl+shift+p and type packageResourceViewer: Extract Package
  4. Select default
  5. ctrl+shift+p and type browse
  6. in the default folder, look for open_in_browser.py

Tell us if you found it.

Look also for a file called Context.sublime-menu

Matt

0 Likes