2020-04-03 14:55:20 -07:00
# Cat Customs - Custom Editor API Samples
2020-04-30 18:17:53 -07:00

2020-04-03 14:55:20 -07:00
2020-04-30 18:17:53 -07:00
Demonstrates VS Code's [custom editor API ](https://code.visualstudio.com/api/extension-guides/custom-editors ) using two custom editors:
- Cat Scratch — Uses the finalized custom text editor api to provide a custom editor for `.cscratch` files (which are just json files)
2020-07-28 15:48:13 -07:00
- Paw Draw - Uses the binary custom editor api to provide a custom editor for `.pawdraw` files (which are just png files with a different file extension).
2020-04-03 14:55:20 -07:00
## VS Code API
### `vscode` module
- [`window.registerCustomEditorProvider` ](https://code.visualstudio.com/api/references/vscode-api#window.registerCustomEditorProvider )
- [`CustomTextEditor` ](https://code.visualstudio.com/api/references/vscode-api#CustomTextEditor )
2020-04-30 18:17:53 -07:00
- [`CustomEditor` ](https://code.visualstudio.com/api/references/vscode-api#CustomEditor )
2020-04-03 14:55:20 -07:00
## Running the example
2020-06-11 13:39:56 -07:00
- Open this example in VS Code 1.46+
2020-04-03 14:55:20 -07:00
- `npm install`
- `npm run watch` or `npm run compile`
- `F5` to start debugging
Open the example files from the `exampleFiles` directory.