Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>redoc-viewer-2New to Visual Studio Code? Get it now.
redoc-viewer-2

redoc-viewer-2

Nadeeshan Chandika

|
879 installs
| (0) | Free
ReDoc Viewer 2 is a extension to original ReDoc Viewer with added support of custom config object
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ReDoc Viewer 2

eDoc Viewer 2 is a extension to original ReDoc Viewer with added support of custom config object

To start

  • Open the yaml/json file and press F1.
  • Run the Command Redoc Viewer 2.
  • ctrl-shft-p > Redoc Viewer 2

Configurations

  • Re Doc Viewer2: Config is the JSON config https://github.com/Redocly/redoc#redoc-options-object. You can add the config in settings.json reDocViewer2.config key
{
    ....
    "reDocViewer2.config": {
        "theme": {
            "spacing": {
                "unit": 8,
                "sectionHorizontal": 24,
                "sectionVertical": 24
            },
            ...
        },
        ...
    }
}
  • Re Doc Viewer2: Styles is the style string that will inject to the Webpage. You can customixe the additional styles which dont supported by the theme object. This should be single line CSS string
{
    ....
    "reDocViewer2.styles": ".redoc-wrap h2 {\r\n\t color: #f5f5f5 !important;\r\n}\r\n"
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft