VS Code - Tasks and Contexts
The Tasks and Contexts extension for Visual Studio Code implements a task-focused interface.
It is similar to the Eclipse Mylyn plugin.
You can create as many tasks as you want. Anytime you activate a task, the documents you open are attached to that task.
Switching from one task to another closes the current documents and opens the ones you linked to the new task.
Tasks can also be imported from your issue tracker. Currently, an integratio with Trello is provided.
Create new tasks by clicking on the 'Add' button in the Tasks view.
Simply click on a task to activate it. This will close all editors associated with the previous task and open the ones associated with the newly selected one.
Click on the delete icon when selecting or hovering over a task.
Click on the edit icon when selecting or hovering over a task.
Add documents to tasks
when a task has been activated, any document opened gets added to the task context.
Remove documents from tasks
To remove a document from a task, simply close the document.
Import Trello cards as tasks
Select the board and list you want to import and the extension auto creates tasks for you.
Connecting to Trello
To connect to Trello, you need to install a variant of Ho Wan's Trello Viewer extension. Our variant includes a change to expose the extension's Trello API.
Please following these steps:
Connect to Trello as per the instructions included in the Trello Viewer extension.
Git commit messages
Whenever you switch tasks, the extension writes the task name into the file .vscode/tasks-and-contexts-commit-msg.txt
To have your git commit messages pre-filled with the task name, following these instructions.
Create a pre-commit-message Git hook
Create a file .git/hooks/prepare-commit-msg with the following contents:
Make the pre-commit-message executable
Run the following command:
Commit via the terminal
Unfortunately, VS Code doesn't run the prepare-commit-msg hook so you need to run
There are currently no settings defined.