Using the Visual Studio Team Services extension for Visual Studio Code you can keep an eye on the health of Visual Studio Team Services using the status bar indicator as well as use the commands from the command palette to perform version control, and work item tracking actions against your Visual Studio Team Services acount.
The features are available through the commands that were added to the command palette as well as the key bindings associated with each: Open Visual Studio Team Services support website (Ctrl+T Ctrl+S), Open Visual Studio Team Services work items website (Ctrl+T Ctrl+W), Create Visual Studio Team Services work item (Ctrl+T Ctrl+N), Create Visual Studio Team Services task from selection (Ctrl+T Ctrl+T), Query Visual Studio Team Services work items (Ctrl+T Ctrl+Q), Open in Visual Studio Team Services (Ctrl+T Ctrl+O), Annotate in Visual Studio Team Services (Ctrl+T Ctrl+A), View history in Visual Studio Team Services (Ctrl+T Ctrl+H), View pull requests in Visual Studio Team Services (Ctrl+T Ctrl+P).
Based on the settings in settings.json
two visual indicators are added to the Visual Studio Code status bar. One for the health of Visual Studio Team Services and one for the Visual Studio Team Service account/team project that the extension is connected to. Clicking the service health indicator will open the support website, while clicking the account/team project indicator will open the work item management website.
Create a new Visual Studio Team Services task from a single-line text selection to easily track tasks from comments. A link to the newly created task will be automatically injected into the editor. This feature is only available for JavaScript, TypeScript, TypeScript React, and C# files.
Execute a work item querie stored in the "My Queries" folder and open a work item that is returned by the query.
While working with a Git repository hosted in Visual Studio Studio Team Services, you can open the repository/current file, annotate the current file, view the history of the repository/current file, and view pull requests right from within Visual Studio Code.
Before installing this extension, if you have installed any of the two extensions listed below, please uninstall them as the features included in those extensions have been ported into this extension along with extra functionality that is availability only in this extension.
- Visual Studio Team Services health indicator
- Visual Studio Team Services work item management extension
In order for the extension to access your Visual Studio Team Servies account you need to provide the account name, team project name, and a personal access token with "work items (read and write)" permission. After installing the extension, and restarting Visual Studio Code, add the following settings into settings.json
:
// Visual Studio Team Services account (Ex: contoso.visualstudio.com).
"vsts.account": "",
// Visual Studio Team Services personal access token.
"vsts.pat": "",
// Visual Studio Team Services team project name.
"vsts.teamProject": ""
Additionally you can add an optional setting to control the work item types that can be created using Visual Studio Code.
// Visual Studio Team Services work item types. (Ex: ["Bug", "Task"])
"vsts.workItemTypes": [],
- Visual Studio Team Services health, account, and team project indicators on the status bar
- Open Visual Studio Team Services work items portal
- Create/query Visual Studio Team Services work items
- Create new task from a single-line text selection (JavaScript, TypeScript, TypeScript React, C#)
- Open/annotate file, view history/pull requests in Visual Studio Team Services
MIT. For more details check LICENSE.