Code Monkey home page Code Monkey logo

vscode-extensions-open-in-browser's Introduction

Open in Browser

What's new?

  • rewrite the code with TypeScript, now it dependes on a tiny library npm/opn
  • support more browsers: Chromium(Mac only), Firefox Developer Edition(Mac only), Edge(Windows only, sometimes it won't work)
  • you can open any type of file with the default program, not only html file.

How it works?

  • on win32 uses start
  • on darwin uses open
  • otherwise uses ths xdg-open script from freedesktop.org

Usage

use Alt + B shortcut to open current html file in default browser, or Shift + Alt + B to choose a browser. you could also right click just like the picture: img

when you choose oepn in Other Browsers, a browser list will display, and you could choose one to open current file. img

when you choose open in Default Browser, it means system default browser by default. If you want to configure the default browser, you could override it like that: img if you configured the default browser, when you choose open in Default Browser, your configured browser will works.

you do not need to set opn-in-browser.default a very accurate value, as long as the value matches any of the following terms, I will handle it: Chrome values: chrome, google chrome, google-chrome, gc Firefox values: firefox, mozilla firefox, ff IE values: ie, iexplore Safari values: safari Opera values: opera Chromium values: chromium Firefox Developer Edition values: firefox developer, fde, firefox developer edition Edge values: edge, msedge, microsoftedge

Shortcuts

key command
Alt + B open in default browser
Shift + Alt + B open in specified browser

Changelog

see changelog for more infomation

License

MIT

vscode-extensions-open-in-browser's People

Contributors

davidgriswoldhh avatar lukas238 avatar sudokillme avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.