Visual Studio Code
The WakaTime plugin is open-source on GitHub.
Press F1 or CMD + Shift + P and type
Extensions: Install Extension.
wakatimeand hit enter.
Restart Visual Studio Code.
Enter your API key , then press enter.
(If you already have a WakaTime plugin installed, you won't be prompted for your api key.)
Use Visual Studio Code like you normally do and your time will be tracked for you automatically.
Visit https://wakatime.com/ to see your logged time.