The code is written in Visual Studio 2013 - but it backward compatible down to 2010 (the code! Not the project). The most useless extension ever The sample I will use is truly useless, as it does nothing, but enables to choose some properties for any.cs file in your project - form a drop-down list. Extension Guides. Once you have learned the basics of Visual Studio Code Extension API in the Hello World sample, it's time to build some real-world extensions. While the Extension Capabilities section offers high-level overviews of what an extension can do, this section contains a list of detailed code guides and samples that explains how to use a specific VS Code API.
With AdaptiveCards Studio you can author cards directly in Visual Studio Code. The Extension automatically detects all Adaptive Cards in your working space and lets you easily edit the card template and sample data.
To use the Extension you must configure it first!
This extension contributes the following settings:
acstudio.defaultHostConfig
: The HostConfig to be used when rendering cardsOpen the Adaptive Cards Panel and select a card.... thats all you have to do :)
Login to your M365 account, click the outlook icon to send the card to yourself by email.
The Extension comes with various snippets to make authoring cards even easier. Just press ctrl+space anywhere in the AdaptiveCard Json
Snippets for Adaptive Cards Elements:
ac-txt
: TextBlock with minimum propertiesac-txtfull
: TextBlock with all propertiesac-col3
: Columnset with 3 columnsac-col2
: Columnset with 2 columnsac-fctset
: Factsetac-ctr
: Containerac-img
: ImageSnippets for Adaptive Card Samples:
ac-empty
: A new, blank AdaptiveCardac-activityUpdate
: Adaptive Cards Activity Update Sampleac-expenseReport
: Adaptive Cards Expense Report Sampleac-inputForm
: Adaptive Cards Input Form SampleWhen editing templates its a tremendous help to have sample data available. The Extension lets you create and store sample data for your templates easily.
The CMS interoperability is in alpha preview, to connect the extension to your self hosted CMS set the config values above to your URL and access token. The only way to get an access token right now is using developer tools in your browser and inspecting the calls when logged in to your CMS. This is an alpha proof of concept and will have a proper login mechanism soon.