From df883a4803bdec16ab16b3231c960d1af000c42c Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Thu, 29 Aug 2024 08:31:49 -0400 Subject: [PATCH] docs: Link to docs for individual settings from "Configuring Languages" (#17082) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR updates the "Configuring Languages" page to link to the docs for individual settings when it mentions them. Screenshot 2024-08-29 at 8 30 35 AM Release Notes: - N/A --- docs/src/configuring-languages.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/src/configuring-languages.md b/docs/src/configuring-languages.md index 7305e1d472..b2c9571bd4 100644 --- a/docs/src/configuring-languages.md +++ b/docs/src/configuring-languages.md @@ -49,13 +49,13 @@ Here's an example of language-specific settings: You can customize a wide range of settings for each language, including: -- `tab_size`: The number of spaces for each indentation level -- `formatter`: The tool used for code formatting -- `format_on_save`: Whether to automatically format code when saving -- `enable_language_server`: Toggle language server support -- `hard_tabs`: Use tabs instead of spaces for indentation -- `preferred_line_length`: The recommended maximum line length -- `soft_wrap`: How to wrap long lines of code +- [`tab_size`](./configuring-zed.md#tab-size): The number of spaces for each indentation level +- [`formatter`](./configuring-zed.md#formatter): The tool used for code formatting +- [`format_on_save`](./configuring-zed.md#format-on-save): Whether to automatically format code when saving +- [`enable_language_server`](./configuring-zed.md#enable-language-server): Toggle language server support +- [`hard_tabs`](./configuring-zed.md#hard-tabs): Use tabs instead of spaces for indentation +- [`preferred_line_length`](./configuring-zed.md#preferred-line-length): The recommended maximum line length +- [`soft_wrap`](./configuring-zed.md#soft-wrap): How to wrap long lines of code These settings allow you to maintain specific coding styles across different languages and projects. @@ -63,7 +63,7 @@ These settings allow you to maintain specific coding styles across different lan Zed automatically detects file types based on their extensions, but you can customize these associations to fit your workflow. -To set up custom file associations, use the `file_types` setting in your `settings.json`: +To set up custom file associations, use the [`file_types`](./configuring-zed.md#file-types) setting in your `settings.json`: ```json "file_types": {