wakatime / jetbrains-wakatime

IntelliJ IDEA, PyCharm, RubyMine, PhpStorm, AppCode, AndroidStudio, Goland, Rider, & WebStorm plugin for quantifying your coding.
https://wakatime.com/intellij-idea
BSD 3-Clause "New" or "Revised" License
1.13k stars 167 forks source link

Multi account tracking #156

Closed davidnghk01 closed 1 year ago

davidnghk01 commented 3 years ago

Background

I have two accounts (company account, personal account) in single computer , and i want to separate the time tracking with difference API KEY.

And i can't found any options how to set API Key individually by project. (E.X. project A use API Key A, project B use API Key B ...etc.)

Environments

WebStorm 2020.2 Mac OS 11

alanhamlett commented 1 year ago

You can now accomplish this using a [project_api_key] section in your ~/.wakatime.cfg file:

[project_api_key]
/projects/project-a/ = api-key-a
/projects/project-b/ = api-key-b

The left part is a regex pattern matching the project folder's path.