A vscode extension that automatically opens browser page of any HTML or Markdown. Works with Hugo and Storybook.

Installation

code --install-extension https://github.com/nonlinear/nonlinear.github.io/raw/main/.vscode/extensions/preview-in-browser/preview-in-browser-latest.vsix

or Download .vsix

Hugo flow

flowchart LR
    A([nonlinear opens file]) --> B{In content/ folder?}
    B -- No --> Z[Do nothing]
    B -- Yes --> C{Hugo server running?}
    C -- No --> D[Start Hugo server]
    D --> E([Open Simple Browser])
    C -- Yes --> E

Storybook flow

flowchart LR
    A([nonlinear opens component]) --> B{Is .stories file?}
    B -- No --> Z[Do nothing]
    B -- Yes --> C{Storybook running?}
    C -- No --> D[Start Storybook]
    D --> E([Open Simple Browser])
    C -- Yes --> E

Roadmap

Contact