You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/bicep/visual-studio-code.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
---
2
2
title: Create Bicep files by using Visual Studio Code
3
-
description: Describes how to create Bicep files by using Visual Studio Code
3
+
description: Learn how to use Visual Studio Code to create Bicep files.
4
4
ms.topic: how-to
5
5
ms.custom: devx-track-bicep
6
-
ms.date: 07/18/2024
6
+
ms.date: 10/09/2024
7
7
---
8
8
9
9
# Create Bicep files by using Visual Studio Code
@@ -18,7 +18,7 @@ To set up your environment for Bicep development, see [Install Bicep tools](inst
18
18
19
19
Visual Studio Code comes with several Bicep commands.
20
20
21
-
Open or create a Bicep file in VS Code, select the **View** menu and then select **Command Palette**. You can also use **F1** or the key combination <kbd>Ctrl+Shift+P</kbd> to bring up the command palette. Type **Bicep** to list the Bicep commands.
21
+
Open or create a Bicep file in VS Code, select the **View** menu, and then select **Command Palette**. You can also use **F1** or the key combination <kbd>Ctrl+Shift+P</kbd> to bring up the command palette. Type **Bicep** to list the Bicep commands.
22
22
23
23
:::image type="content" source="./media/visual-studio-code/visual-studio-code-bicep-commands.png" alt-text="Screenshot of Visual Studio Code Bicep commands in the command palette.":::
24
24
@@ -41,7 +41,7 @@ These commands are also shown in the context menu when you right-click a Bicep f
41
41
42
42
When you right-click a JSON file:
43
43
44
-
:::image type="content" source="./media/visual-studio-code/visual-studio-code-bicep-context-menu-json.png" alt-text="Screenshot of Visual Studio Code Bicep commands in the context menu for ARM JSON templates.":::
44
+
:::image type="content" source="./media/visual-studio-code/visual-studio-code-bicep-context-menu-json.png" alt-text="Screenshot of Visual Studio Code Bicep commands in the context menu for ARM JSON templates":::
45
45
46
46
### Build ARM template
47
47
@@ -119,15 +119,15 @@ You can also open the visualizer side-by-side with the Bicep file.
119
119
120
120
When your Bicep file uses modules that are published to a registry, the restore command gets copies of all the required modules from the registry. It stores those copies in a local cache. For more information, see [restore](./bicep-cli.md#restore).
121
121
122
-
## View type document
122
+
## View documentation
123
123
124
-
From Visual Studio Code, you can open the template reference for the resource type you're working on. To do so, hover your cursor over the resource symbolic name, and then select **View type document**.
124
+
From Visual Studio Code, you can open the template reference for the resource type you're working on. To do so, hover your cursor over the resource symbolic name, and then select **View Documentation**.
125
125
126
126
:::image type="content" source="./media/visual-studio-code/visual-studio-code-bicep-view-type-document.png" alt-text="Screenshot of Visual Studio Code Bicep view type document.":::
127
127
128
128
## Go to definition
129
129
130
-
When defining a [module](./modules.md), regardless of the types of the referenced file - whether it's a local file, module registry file, template spec, you can open the referenced file by selecting or highlighting the module path and then press **[F12]**. If the referenced file is an [Azure Verified Modules(AVM)](https://aka.ms/avm), you can toggle between compiled JSON or Bicep file. To be able to open the Bicep file of a private registry module, ensure that the module is published to the registry with the `WithSource` switch enabled. For more information, see [Publish files to registry](./private-module-registry.md#publish-files-to-registry). The Visual Studio Code Bicep extension version 0.27.1 or newer is required for opening Bicep file from private module registry.
130
+
When defining a [module](./modules.md), regardless of the types of the referenced file - whether it's a local file, module registry file, or a template spec, you can open the referenced file by selecting or highlighting the module path and then press **[F12]**. If the referenced file is an [Azure Verified Modules(AVM)](https://aka.ms/avm), you can toggle between compiled JSON or Bicep file. To be able to open the Bicep file of a private registry module, ensure that the module is published to the registry with the `WithSource` switch enabled. For more information, see [Publish files to registry](./private-module-registry.md#publish-files-to-registry). The Visual Studio Code Bicep extension version 0.27.1 or newer is required for opening Bicep file from private module registry.
131
131
132
132
## Paste as Bicep
133
133
@@ -137,7 +137,7 @@ By using this feature, you can paste:
137
137
138
138
- Full ARM JSON templates.
139
139
- Single resource or multiple resources.
140
-
- JSON values, such as objects, arrays, and strings. A string with double-quotes is converted to single-quotes.
140
+
- JSON values, such as objects, arrays, and strings. A string with double quotation marks converts to one with single quotation marks.
141
141
142
142
For example, you can start with the following Bicep file:
143
143
@@ -197,7 +197,7 @@ You can undo the decompilation by using <kbd>Ctrl+Z</kbd>. The original JSON app
197
197
198
198
## Troubleshoot
199
199
200
-
The `Problems` pane summarizes the errors and warning in your Bicep file.
200
+
The `Problems` pane summarizes the errors and warning in your Bicep file:
201
201
202
202
:::image type="content" source="./media/visual-studio-code/visual-studio-code-bicep-problems-pane.png" alt-text="Screenshot of Visual Studio Code Bicep problems pane.":::
0 commit comments