![]() |
VOOZH | about |
Key features of the Bicep VS Code extensionThe Bicep VS Code extension is capable of many of the features you would expect out of other language tooling. Here is a comprehensive list of the features that are currently implemented. ValidationThe bicep compiler validates that your code is authored correctly. We always validate the syntax of each file and whenever possible also validate the return types of all expressions (functions, resource bodies, parameters, outputs, etc.). Depending on the type of validation, you will see either a warning in yellow which will successfully compile with See Bicep Type System for more information about Bicep data types and the type validation rules. IntellisenseBicep provides intellisense for the core language and extends to support type definitions for all resource types in Azure. Dot-property accessType 👁 intellisense being displayed for property access of a bicep resource Resource property names & property valuesBicep knows the allowed properties and values for any List all available resource typesEasily explore all available resource types and api versions for a given type. You can type partial fragments of the type and bicep will narrow the list down accordingly. 👁 intellisense being displayed for all available types for a resource Other intellisense and completions
SnippetsBicep has a small set of snippets for core language keywords ( 👁 snippets for top level keywords Code navigationThe bicep language service supports document symbols, which help power a broad set of code navigation features. Go to definition, peek definition👁 navigating from parameter used as a property value to the parameter declaration Find all references, peek references👁 showing all times a particular symbol is referenced Outline view and breadcrumb view👁 screenshot of vs code with the Outline panel and breadcrumb highlighted HighlightsWhen your cursor is on or in a particular symbol, bicep will highlight other uses of that symbol. The color of the highlight is different for declarations of a symbol as opposed to accessing a symbol. 👁 showing the cursor on a symbol and the other references that are automatically highlighted Hovers👁 showing the mouse hovering over a symbol, which shows type information on a pop-up window RefactoringRename symbolYou can rename any symbol such as a 👁 rename a symbol called 'pip' into a symbol named 'publicIp' with the 'Rename symbol' feature Formatting
👁 formatting a bicep file that is disorganized
You can change the default settings in the following places (sorted by precedence in ascending order):
Quick fixesFor small issues like misspelled symbols or incorrect casing, bicep will offer a "Quick fix" to fix it for you. 👁 correcting a spelling error with "quick fix" CommandsInsert ResourceUse the "Insert Resource" command to quickly import a resource from Azure into a Bicep file. |