adampresley / sublime-view-in-browser

Open the contents of your current view/tab in a web browser
MIT License
271 stars 68 forks source link

[Solution] Update Chromium Browser's key for Linux users #71

Open lvnam96 opened 7 years ago

lvnam96 commented 7 years ago

This fixed issue is for someone like me who installed Chromium Browser on Linux (Ubuntu in my case) by this command: sudo apt-get install chromium-browser and want to run this plugin with Chromium.

1/ Go to Preferences -> Package Settings -> View in Browser -> Settings - User 2/ Copy this code then paste to it:

{
    "posix": {
        "linux": {
            "firefox": "firefox -new-tab",
            "chrome": "google-chrome",
            "chrome64": "google-chrome",
            "chromium": "chromium-browser"
        },
        "linux2": {
            "firefox": "firefox -new-tab",
            "chrome": "google-chrome",
            "chrome64": "google-chrome",
            "chromium": "chromium-browser"
        }
    },
    "browser": "chromium"
}

From now, you can press Ctrl+Alt+V to view files on Chromium. If you no longer want to view files on Chromium, just delete the code.