I created the following C++ snippet in VS Code.
/**
* Author : Sakib62
* Created: Fri__01.Jul.2022__03:59:25
* File : 3.cpp
**/
#include <bits/stdc++.h>
using namespace std;
int main() {
}
I added Current time and date in the snippet taking help from VScode Docs.
So, when I trigger the snippet, I get creation time of the file. But I also want to get the last modified date & time every time I save the file or edit.
I want the snippet to be like:
/**
* Author : Sakib62
* Created: Fri__01.Jul.2022__03:59:25
* Last Modified: Fri__01.Jul.2022__04:42:13
* File : 3.cpp
**/
#include <bits/stdc++.h>
using namespace std;
int main() {
//code
}
How can I do it??