Skip to content

Commit bfb9943

Browse files
committed
Document the VSCode extract feature
1 parent 2660e1a commit bfb9943

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed
Loading
Loading

articles/azure-resource-manager/bicep/visual-studio-code.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Create Bicep files by using Visual Studio Code
33
description: Learn how to use Visual Studio Code to create Bicep files.
44
ms.topic: how-to
55
ms.custom: devx-track-bicep
6-
ms.date: 10/14/2024
6+
ms.date: 11/21/2024
77
---
88

99
# Create Bicep files by using Visual Studio Code
@@ -199,6 +199,24 @@ The Bicep Deployment Pane is an experimental feature. For more information, see
199199

200200
You can also open the deployment pane side-by-side with the Bicep file.
201201

202+
## Use quick fix suggestions
203+
204+
The yellow light bulb in VS Code represents a quick fix suggestion. It appears when the editor detects an issue or an improvement opportunity in your code. Clicking on the light bulb displays a menu of actions that can address the issue or enhance the code.
205+
206+
:::image type="content" source="./media/visual-studio-code/visual-studio-code-bicep-context-quick-fix-suggestions.png" alt-text="Screenshot of Visual Studio Code quick fix suggestions.":::
207+
208+
For the extract commands, see [Extract paramters, variables, and types](#extract-parameters-variables-and-types). In **More Actions**, it suggests adding [decorators](./variables.md#use-decorators).
209+
210+
## Extract parameters, variables, and types
211+
212+
Extracting [variables](./variables.md), [parameters](./parameters.md), and [user-defined data types](./user-defined-data-types.md) involves isolating and defining these components from existing code to improve code structure, maintainability, and clarity.
213+
214+
The following screenshot shows a definition of a storage account resource. You can extract a parameter or a variable, or a user-defined data type based of a property, such as `kind`. Select the `kind` line from the code, and then select the yellow light bulb icon, the context windows shows the available extract options.
215+
216+
:::image type="content" source="./media/visual-studio-code/visual-studio-code-azure-variable-parameter-type-extraction.png" alt-text="Screenshot of variable, parameter, type extraction.":::
217+
218+
219+
202220
## View documentation
203221

204222
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**.

0 commit comments

Comments
 (0)