记录你的编程习惯 - 编辑器通用插件:WakaTime

发布 : 2016-07-11 分类 : Software 浏览 :

WakaTime的使用非常简单,先在wakaTime的网站注册一个账号,再根据编辑器的不同安装对应的插件就可以了

phpstorm安装wakatime

  • Inside PhpStorm, select Preferences → Plugins → Browse Repositories….

  • Search for wakatime.

  • Click the green Install Plugin button and confirm the installation.

  • Re-launch PhpStorm.

  • Enter your API key , then click Save.

sublime安装wakatime

  • Install Package Control.

  • Inside Sublime, select Tools → Command Palette…

  • Type install, then select Package Control: Install Package and press Enter.

  • Type wakatime, then select WakaTime and press Enter.

  • Enter your API key , then press Enter

vim安装wakatime

  • Install Vundle for Vim.

  • From terminal run:

echo “Plugin ‘wakatime/vim-wakatime’” >> ~/.vimrc && vim +PluginInstall

  • (Re-)start Vim and enter your API key , then press Enter.

隐私设置

wakatime默认会记录你编辑的项目文件名称,如果不想让它记录的话可以修改配置文件~/.wakatime.cfg,加上下面这句话:

1
2
hide_file_names = true
hide_project_names = true

所有的设置如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[settings]
debug = false
api_key = your-api-key
hide_file_names = false
hide_project_names = false
exclude =
^COMMIT_EDITMSG$
^TAG_EDITMSG$
^/var/(?!www/).*
^/etc/
include =
.*
include_only_with_project_file = false
offline = true
proxy = https://user:pass@localhost:8080
no_ssl_verify = false
timeout = 30
hostname = machinename
[projectmap]
projects/foo = new project name
^/home/user/projects/bar(\d+)/ = project{0}
[git]
disable_submodules = false

参考此处:

<div class=”github-widget” data-repo=”wakatime/wakatime>
本文作者 : 小凡
原文链接 : https://16bh.github.io/2016/07/11/wakatime-record-coding/
版权声明 : 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明出处!
留下足迹