/vs-code-viewer-extension

Unofficial port of VS Code's code viewing component to a chromium extension.

Primary LanguageTypeScript

VS Code Viewer is an unofficial port of VS Code's editor component to a browser extension for automatically viewing programming language files and data files with VS Code's default language support.

Automatic configuration

  • Theme is inferred from your browser/OS theme.
  • Language is automatically inferred from content type and file extension.

Limitations

  • No extension support. Extensions can't be supported until Monaco supports extensions.
  • Allow scripts. The extension is served in an iframe within the parent page, so the page must allow scripts. Some sites (like GitHub) prevent viewing raw code with scripts for security reasons. See #32.

Contributing

  1. Building the package.
npm run clean
npm run build && npm run zip
  1. Side-load the package in edge://extensions/
  2. Test the package by opening https://reqbin.com/echo/get/json.