rishabhxchoudhary's blog

By rishabhxchoudhary, history, 12 months ago, In English

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

  • Vote: I like it
  • +1
  • Vote: I do not like it

»
12 days ago, # |
  Vote: I like it 0 Vote: I do not like it

It seems like the video tutorial is quite poorly made on this part. I hope you can give me some more information such as where to place the datesetup file and a detailed step-by-step guide to do it.