Within Visual Studio Code, you can interact with tasks from your projects directly from the app via the Teamwork extension.
With the VSCode Editor extension, you can view and add comments to tasks as well as quickly create new tasks from lines of code in the editor.
Note: If you are working in a Github repository, the newly-created task will have a direct link to the exact line in Github.
Once you have the Teamwork extension installed in VSCode, select the Teamwork icon from the left sidebar and click the user profile icon at the top of the extension.
This will open a new tab in your browser where you can log in to the Teamwork account you wish to connect. After logging in, VSCode will pull in a list of your projects from your site.
Click the Select Project for Repository option while you have the extension open. This will bring up a dropdown list of your projects. Using the checkboxes to the left of each project, select the ones you want to list for quick access.
Once you click OK (or press Enter on your keyboard), the selected projects will appear in the list on the left.
You can click a project to expand it to display any active task lists. Select a task list to view any open tasks.
Viewing an existing Teamwork task
When you select an individual task, it will open a task details view in the editor. The task pane will display the relevant task details with whichever properties that have been set.
You can click the project or task list name to be directed to that area in your Teamwork site.
Creating a task from a line of
You can quickly create Teamwork tasks directly from lines of code within the editor. Highlight the relevant text, then right click and choose Create Task.
A modal will open at the top of the editor where you can select a task list. Once selected, you can enter in the task title, assignee, and due date.
Press Enter on your keyboard to create the task. You will see a notification in the bottom right corner of VSCode indicating that the task was created.
A comment will also be added to your code file detailing the task created.
Once the task has been created, it will be accessible in the relevant task list in the Teamwork extension panel.
Clicking the task will open the task details pane on the right side of VSCode.
In Teamwork, you will see the task has been created in the chosen task list. The task description will include the details from VSCode.
Adding a comment to an
To add a comment to the task, click Add Comment at the bottom of the pane to open the comment box. Click Submit to add the comment to the task in Teamwork.
When viewing the task in Teamwork, you will see the comment has been added to the task.
For more information, see: Installing the Teamwork Extension in Visual Studio Code