docs: Add small refinements to CSS adjacent pages (#31683)
Follow up to https://github.com/zed-industries/zed/pull/31681. Was visiting some of these pages and noticed these somewhat small formatting and copywriting improvement opportunities. The docs for Svelte in particular felt somewhat unorganized. Release Notes: - N/A
This commit is contained in:
@@ -5,9 +5,7 @@ HTML support is available through the [HTML extension](https://github.com/zed-in
|
||||
- Tree-sitter: [tree-sitter/tree-sitter-html](https://github.com/tree-sitter/tree-sitter-html)
|
||||
- Language Server: [microsoft/vscode-html-languageservice](https://github.com/microsoft/vscode-html-languageservice)
|
||||
|
||||
This extension is automatically installed.
|
||||
|
||||
If you do not want to use the HTML extension, you can add the following to your settings:
|
||||
This extension is automatically installed, but if you do not want to use it, you can add the following to your settings:
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -19,9 +17,9 @@ If you do not want to use the HTML extension, you can add the following to your
|
||||
|
||||
## Formatting
|
||||
|
||||
By default Zed uses [Prettier](https://prettier.io/) for formatting HTML
|
||||
By default Zed uses [Prettier](https://prettier.io/) for formatting HTML.
|
||||
|
||||
You can disable `format_on_save` by adding the following to your Zed settings:
|
||||
You can disable `format_on_save` by adding the following to your Zed `settings.json`:
|
||||
|
||||
```json
|
||||
"languages": {
|
||||
@@ -31,11 +29,11 @@ You can disable `format_on_save` by adding the following to your Zed settings:
|
||||
}
|
||||
```
|
||||
|
||||
You can still trigger formatting manually with {#kb editor::Format} or by opening the command palette ( {#kb commandPalette::Toggle} and selecting `Format Document`.
|
||||
You can still trigger formatting manually with {#kb editor::Format} or by opening [the Command Palette](..//getting-started.md#command-palette) ({#kb command_palette::Toggle}) and selecting "Format Document".
|
||||
|
||||
### LSP Formatting
|
||||
|
||||
If you prefer you can use `vscode-html-language-server` instead of Prettier for auto-formatting by adding the following to your Zed settings:
|
||||
To use the `vscode-html-language-server` language server auto-formatting instead of Prettier, add the following to your Zed settings:
|
||||
|
||||
```json
|
||||
"languages": {
|
||||
@@ -45,7 +43,7 @@ If you prefer you can use `vscode-html-language-server` instead of Prettier for
|
||||
}
|
||||
```
|
||||
|
||||
You can customize various [formatting options](https://code.visualstudio.com/docs/languages/html#_formatting) for `vscode-html-language-server` via Zed settings.json:
|
||||
You can customize various [formatting options](https://code.visualstudio.com/docs/languages/html#_formatting) for `vscode-html-language-server` via your Zed `settings.json`:
|
||||
|
||||
```json
|
||||
"lsp": {
|
||||
@@ -66,7 +64,7 @@ You can customize various [formatting options](https://code.visualstudio.com/doc
|
||||
}
|
||||
```
|
||||
|
||||
## See also:
|
||||
## See also
|
||||
|
||||
- [CSS](./css.md)
|
||||
- [JavaScript](./javascript.md)
|
||||
|
||||
Reference in New Issue
Block a user