Adding Dates to Sublime Text Snippets

Revision en1, by rishabhxchoudhary, 2024-02-19 13:49:56

Recently I switched from VS Code to sublime text for competitive programming (as VS Code as too slow for me). However, I had difficulty in adding date and time in snippets.

When I see codes of good competitive programmers they have at the top written :

/*
*    Author: username
*    Created: Monday, 19.02.2024 01:03 PM (the timestamp)
*/

So I wanted to do the same thing, but I could not find any good answers online on how to do it.

Finally, I added it using a custom plugin and file handling in python to make a global variable $CURRENT_DATETIME and used it in the snippet.

I also created a video tutorial on it.You can check this video tutorial here: https://youtu.be/8Mzp16ZpPBc?si=CZhXIfk8j5vVI7FD&t=512

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English rishabhxchoudhary 2024-02-19 13:49:56 910 Initial revision (published)