Skip to content

Commit 655d4d5

Browse files
authored
Merge pull request #7924 from microsoft/user-snippets
Fix snippets command
2 parents 4c4d87c + 1f9930b commit 655d4d5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/editor/userdefinedsnippets.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ If you find an extension you want to use, install it, then restart VS Code and t
3535

3636
## Create your own snippets
3737

38-
You can easily define your own snippets without any extension. To create or edit your own snippets, select **Configure User Snippets** under **File** > **Preferences**, and then select the language (by [language identifier](/docs/languages/identifiers.md)) for which the snippets should appear, or the **New Global Snippets file** option if they should appear for all languages. VS Code manages the creation and refreshing of the underlying snippets file(s) for you.
38+
You can easily define your own snippets without any extension. To create or edit your own snippets, select **Configure Snippets** under **File** > **Preferences**, and then select the language (by [language identifier](/docs/languages/identifiers.md)) for which the snippets should appear, or the **New Global Snippets file** option if they should appear for all languages. VS Code manages the creation and refreshing of the underlying snippets file(s) for you.
3939

4040
![snippet dropdown](images/userdefinedsnippets/snippet-dropdown.png)
4141

@@ -88,15 +88,15 @@ Every snippet is scoped to one, several, or all ("global") languages based on wh
8888
1. a **language** snippet file
8989
2. a **global** snippet file
9090

91-
Single-language user-defined snippets are defined in a specific language's snippet file (for example `javascript.json`), which you can access by language identifier through **Snippets: Configure User Snippets**. A snippet is only accessible when editing the language for which it is defined.
91+
Single-language user-defined snippets are defined in a specific language's snippet file (for example `javascript.json`), which you can access by language identifier through **Snippets: Configure Snippets**. A snippet is only accessible when editing the language for which it is defined.
9292

93-
Multi-language and global user-defined snippets are all defined in "global" snippet files (JSON with the file suffix `.code-snippets`), which is also accessible through **Snippets: Configure User Snippets**. In a global snippets file, a snippet definition may have an additional `scope` property that takes one or more [language identifiers](/docs/languages/identifiers.md), which makes the snippet available only for those specified languages. If no `scope` property is given, then the global snippet is available in **all** languages.
93+
Multi-language and global user-defined snippets are all defined in "global" snippet files (JSON with the file suffix `.code-snippets`), which is also accessible through **Snippets: Configure Snippets**. In a global snippets file, a snippet definition may have an additional `scope` property that takes one or more [language identifiers](/docs/languages/identifiers.md), which makes the snippet available only for those specified languages. If no `scope` property is given, then the global snippet is available in **all** languages.
9494

9595
Most user-defined snippets are scoped to a single language, and so are defined in a language-specific snippet file.
9696

9797
### Project snippet scope
9898

99-
You can also have a global snippets file (JSON with file suffix `.code-snippets`) scoped to your project. Project-folder snippets are created with the **New Snippets file for '<folder-name>'...** option in the **Snippets: Configure User Snippets** dropdown menu and are located at the root of the project in a `.vscode` folder. Project snippet files are useful for sharing snippets with all users working in that project. Project-folder snippets are similar to global snippets and can be scoped to specific languages through the `scope` property.
99+
You can also have a global snippets file (JSON with file suffix `.code-snippets`) scoped to your project. Project-folder snippets are created with the **New Snippets file for '<folder-name>'...** option in the **Snippets: Configure Snippets** dropdown menu and are located at the root of the project in a `.vscode` folder. Project snippet files are useful for sharing snippets with all users working in that project. Project-folder snippets are similar to global snippets and can be scoped to specific languages through the `scope` property.
100100

101101
## Snippet syntax
102102

docs/getstarted/tips-and-tricks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ See IntelliSense for your `package.json` file.
815815

816816
### Create custom snippets
817817

818-
**File** > **Preferences** > **Configure User Snippets**, select the language, and create a snippet.
818+
**File** > **Preferences** > **Configure Snippets**, select the language, and create a snippet.
819819

820820
```json
821821
"create component": {

docs/python/tutorial-flask.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ You can run the app at this point, but because you haven't made use of the base
470470
471471
Because the three pages you create in the next section extend `layout.html`, it saves time to create a **code snippet** to initialize a new template file with the appropriate reference to the base template. A code snippet provides a consistent piece of code from a single source, which avoids errors that can creep in when using copy-paste from existing code.
472472
473-
1. In VS Code, select **File** > **Preferences** > **Configure User Snippets**.
473+
1. In VS Code, select **File** > **Preferences** > **Configure Snippets**.
474474
475475
1. In the list that appears, select **html**. The option may appear as "html.json" in the **Existing Snippets** section of the list if you've created snippets previously.
476476

0 commit comments

Comments
 (0)