Contibuting to docs - open editor on linux (#24907)

* Update docs.md

Tested on Ubuntu

* Fix layout

---------

Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
This commit is contained in:
Abhishek Choithani 2025-05-28 07:09:23 +05:30 committed by GitHub
parent ba11f75067
commit effcb32a3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -174,11 +174,19 @@ Build the library locally to test that any changes you have made have rendered p
1. Open previewed pages in your local editor:
First specify a local text editor file using the `EDITOR` environment variable, before calling `yarn start` to preview the library.
For example, on Windows command line you can enable VSCode as your default editor by entering:
For example, you can enable VSCode as your default editor by entering:
```sh
set EDITOR=code
```
- Windows:
```sh
set EDITOR=code
```
- Linux:
```sh
export EDITOR=code
```
The **Open in your editor** link at the bottom of each page will then open the current page in the editor (this replaces the _Open in GitHub_ link).