I recently discovered a service called Code::Stats. It’s a simple service that tracks how many keystokes you do while editing your source files using plugins to your favourite editors. Each keystore measures as 1 XP or Experience Point.
There were already a few plugins available for Atom, Sublime Text 3 and IntelliJ editors but none for my main editor Visual Studio Code. Code::Stats has a simple API so I created an extension to Visual Studio Code for it.