Skip to content

V1.3 features

Scott Carda edited this page Mar 20, 2024 · 7 revisions

Formatting

You can now format Q# files. Either,

You can also select a block of code and format only the selection via the right-click menu (or the keyboard shortcut shown on that menu).

Formatting can be enabled/disabled through a checkbox on the VS Code settings for the Q# language:

image

Linting

Q# now has a linter! There are 3 rules in this first release, two that are on by default (and will show up as warnings in the editor). See the PR at https://github.com/microsoft/qsharp/pull/1140 for details on the rules and how to configure them. Example below:

image

Connection strings authentication

You can now authenticate to an Azure Quantum workspace using a connection string, rather than AzureAD authentication. See the Azure Quantum documentation on how to enable and locate a connection string.

When you click to add a quantum workspace (see https://github.com/microsoft/qsharp/wiki/Submitting-jobs-to-Azure-Quantum), you will first be asked to choose between AzureAD or a Connection String to authenticate. If you select Connection String, enter the connection string found from the Azure portal.

If you need to update the connection string, simply remove and re-add the workspace with the new connection string.