With the lapse of time, I think Microsoft will make more variables available so that you would be able to create even more powerful snippets. VSCode snippets is a quite powerful feature that you can use to automate your everyday operations.
You can find it in the accompanying repository. I have also shared the final file with the snippets. If you need more information please refer to the official documentation.
VSCODE SNIPPETS HOW TO
I think that it is quite easy to understand how to do this. Of course, these templates are not set in the stone and you can modify them according to your needs. Then, everything would become clear to you. If you want to understand it you need to read my previous articles on this topic ( 1, 2, 3). If you are reading this post without having a clue on my approach for time/task management it may seem you coming out of nowhere. "Generate Year Template" : Īll further actions are similar to previous cases. Open org.json file, add the following object entry and save the file: Let’s start from the simplest snippet to create a year template. When you have opened this snippets file you would see a brief description how to create user snippets, but you would find more information in the online documentation for this feature. So as all my time/task management files are stored in one directory I could create a project-specific snippets file (using the “New Snippets file for …” command), but I prefer to store all language specific snippets in one place. In order to create a snippets file, go to File -> Preferences -> User Snippets and in the opened invitation select Org that should create a language-specific snippets file called org.json (if you have already created this file before it should be displayed among “Existing Snippets” so you can open and edit it. Luckily, the Org Mode extension defines a separate language called Org, which we will assign our snippets considered in this article. Moreover, these snippets are language-specific, e.g., you can create a snippet for markdown file that will not be available while you are developing, e.g., Python code. In VSCode, a user can create a set of snippets that would be activated when you start typing a keyword. To speed up the creation of the time/task management files, I have started using the VSCode Snippets feature. In this article, I share the details of this improvement.
However, recently I have discovered an approach that allows me to speed up the creation of the year, month and week files. Since then, a number of people has asked me to share the templates of the week, month and year files what I did after the first request.
VSCODE SNIPPETS SERIES
In the series of articles on my time/task management approach, one article is dedicated to the tool set (VSCode + OrgMode) I use to track my tasks and performance.