OpenCtx for VS Code
Contextual info about code from your dev tools, in your editor. See openctx.org.
Hover over a UI component in code to see what it looks like
Usage
Status: experimental
-
Install OpenCtx for VS Code (
sourcegraph.openctx
). -
Add the following to your VS Code settings:
"openctx.providers": {"https://openctx.org/npm/@openctx/provider-hello-world": true,}, -
Open a code file and look for the "Hello World" items from OpenCtx.
-
Add other OpenCtx providers to see more contextual info about your code:
- Links
- Storybook
- Prometheus
- For more and to write your own, see "OpenCtx docs".
-
(Optional) Add Sourcegraph as an OpenCtx provider in VS Code to get the same items in your editor as you get in Sourcegraph:
"openctx.providers": {// ...other providers..."https://sourcegraph.com/.api/openctx": true,},
Development
- Source code
- Docs
- License: Apache 2.0
Notes
- The extension is also published to the Open VSX Registry.