A VSCode extension that track your coding activities and generate report about your coding.
You can know how much time you spent on each projects/files/computers/languages/branchs and total
by this extension.
Supported languages: English, Russian(русский), Spanish(Español), Simplified Chinese(简体中文) and Traditional Chinese(繁體中文).
All part of this extension(included server program, documents) are open-source and hosted on Github.
Links:
Server program Github repo
VSCode extensions marketplace
Node.js
or installed nvm
.If you want use this version now,
you can uninstall old version in VSCode, And clone this repository into $HOME/.vscode/extensions
more version information: CHANGELOG.md
Applicable to people dont want to read below long text and only use VSCode in one computer
F1
to open VSCode command panel, then search command above and click itVSCode Coding Tracker actually has two part: extension and server (C/S)
And extension use internal server installed in node_modules by default.
But you could install a server program on you server and use it on VSCode on different computers.
Server program repository: vscode-coding-tracker-server
Search vscode-coding-tracker
in VSCode extension panel and install it.
You don't need to do anything.(And don't change the configuration codingTracker.localServerMode
to false
)
In this situation, the database files are located in $HOME/.coding-tracker/
codingTracker.localServerMode
to false
%HOME%/.vscode/extensions/hangxingliu.vscode-coding-tracker-0.6.0
cd %HOME%/.vscode/extensions/hangxingliu.vscode-coding-tracker-0.6.0
cd $HOME/.vscode/extensions/hangxingliu.vscode-coding-tracker-0.6.0
npm i
npm start -- -t ${REPLACE_TO_YOUR_TOKEN}
npm start -- -t test_token
, means your upload token is test_token
npm start -- --help
--
following to npm start
to passing following arguments to tracker server./database
in default.codingTracker.localServerMode
to false
node
and npm
environmentsnpm i vscode-coding-tracker-server
(Global install: append -g
to the command)npm start -- -t ${REPLACE_TO_YOUR_TOKEN}
./database
in default.configurations:
codingTracker.serverURL
(set up such as "http://localhost:10345")
http://localhost:10345
codingTracker.uploadToken
(set up such as "123456")
codingTracker.computerId
(set up this computer name then you can easy to know which computer you coding more time)
codingTracker.localServerMode
(in default is true). Please refer abovecodingTracker.moreThinkingTime
(in default is 0 ). More thinking time for tracking
Open command panel in your VSCode.Then search and click command CodingTracker: Show your coding activities report
Or, just open browser and enter http://${YOUR_SERVER_HOST_NAME}:${PORT}/report/?token=${API_TOKEN}
http://127.0.0.1:10345/report/
http://mydomain.com:10345/report/?token=myUploadToken
codingTracker.startLocalServer
codingTracker.stopLocalServer
codingTracker.showReport
lib/thirdPartyCodes/gitPaths.js
is modified from https://github.com/DonJayamanne/gitHistoryVSCode/blob/master/src/helpers/gitPaths.ts