vscode-wakatime
所属分类:Python编程
开发工具:TypeScript
文件大小:0KB
下载次数:0
上传日期:2023-06-11 12:06:45
上 传 者:
sh-1993
说明: Visual Studio代码插件,用于自动时间跟踪和从编程活动生成的度量。
(Visual Studio Code plugin for automatic time tracking and metrics generated from your programming activity.)
文件列表:
.prettierrc (90, 2023-12-28)
.vscode/ (0, 2023-12-28)
.vscode/launch.json (886, 2023-12-28)
.vscode/settings.json (228, 2023-12-28)
.vscode/tasks.json (386, 2023-12-28)
.vscodeignore (238, 2023-12-28)
AUTHORS (495, 2023-12-28)
CHANGELOG.md (23351, 2023-12-28)
LICENSE (1501, 2023-12-28)
images/ (0, 2023-12-28)
images/ads-install.png (27010, 2023-12-28)
images/type-install.png (4943, 2023-12-28)
images/type-wakatime.png (6611, 2023-12-28)
images/wakatime-logo.png (5075, 2023-12-28)
package-lock.json (324668, 2023-12-28)
package.json (3524, 2023-12-28)
src/ (0, 2023-12-28)
src/constants.ts (587, 2023-12-28)
src/dependencies.ts (11917, 2023-12-28)
src/desktop.ts (881, 2023-12-28)
src/extension.ts (2029, 2023-12-28)
src/logger.ts (1644, 2023-12-28)
src/options.ts (10539, 2023-12-28)
src/utils.ts (3511, 2023-12-28)
src/wakatime.ts (31737, 2023-12-28)
src/web/ (0, 2023-12-28)
src/web/extension.ts (1547, 2023-12-28)
src/web/logger.ts (1269, 2023-12-28)
src/web/wakatime.ts (27281, 2023-12-28)
test/ (0, 2023-12-28)
... ...
# WakaTime for Visual Studio Code
[![Version](https://img.shields.io/visual-studio-marketplace/v/WakaTime.vscode-wakatime.svg?style=flat-square&color=007ec6&label=marketplace)](https://marketplace.visualstudio.com/items?itemName=WakaTime.vscode-wakatime)
[![Installs](https://img.shields.io/visual-studio-marketplace/i/WakaTime.vscode-wakatime?style=flat-square&color=007ec6)](https://marketplace.visualstudio.com/items?itemName=WakaTime.vscode-wakatime)
[![WakaTime](https://wakatime.com/badge/github/wakatime/vscode-wakatime.svg?style=flat-square&branch=master)](https://wakatime.com/badge/github/wakatime/vscode-wakatime)
[WakaTime][wakatime] is an open source VS Code plugin for metrics, insights, and time tracking automatically generated from your programming activity.
## Installation
1. Press `F1` or ` + Shift + P` and type `install`. Pick `Extensions: Install Extension`.
![type install](./images/type-install.png)
2. Type `wakatime` and hit `enter`.
![type wakatime](./images/type-wakatime.png)
3. Enter your [api key][api key], then press `enter`.
> (If you’re not prompted, press `F1` or ` + Shift + P` then type `WakaTime API Key`.)
4. Use VSCode and your coding activity will be displayed on your [WakaTime dashboard](https://wakatime.com)
## Usage
Visit [https://wakatime.com](https://wakatime.com) to see your coding activity.
![Project Overview](https://wakatime.com/static/img/ScreenShots/Screen-Shot-2016-03-21.png)
## Configuring
VS Code specific settings are available from ` + Shift + P`, then typing `wakatime`.
For example, to hide today's coding activity in your status bar:
Press ` + Shift + P` then set `WakaTime: Status Bar Coding Activity` to `false`.
Extension settings are stored in the INI file at `$HOME/.wakatime.cfg`.
More information can be found from [wakatime-cli][wakatime-cli configs].
If using an online IDE like [gitpods](https://gitpod.io/), add your [api key][api key] to global ENV key `WAKATIME_API_KEY`.
Notes:
1. `$HOME` defaults to `$HOME`
1. To disable the extension at startup add `disabled=true` to your config, this operation can also be performed by pressing ` + Shift + P` and selecting `WakaTime: Disable`.
## Troubleshooting
First, turn on debug mode:
1. Press `F1` or ` + Shift + P`
2. Type `> WakaTime: Debug`, and press `Enter`.
3. Select `true`, then press `Enter`.
Next, open your Developer Console to view logs and errors:
`Help → Toggle Developer Tools`
Errors outside the scope of vscode-wakatime go to `$HOME/.wakatime/wakatime.log` from [wakatime-cli][wakatime-cli help].
If your error message contains "won't send heartbeat due to backoff" then delete your `~/.wakatime/wakatime-internal.cfg` file to trigger an API connection so we can see the real error message.
The [How to Debug Plugins][how to debug] guide shows how to check when coding activity was last received from your editor using the [Plugins Status Page][plugins status page].
**Microsoft Windows Only:** Using WakaTime behind a corporate proxy? Try enabling your Windows Root Certs inside VS Code with the [win-ca][winca] extension:
Press `Ctrl + Shift + X`, search for `win-ca`, press `Install`.
For more general troubleshooting info, see the [wakatime-cli Troubleshooting Section][wakatime-cli help].
### SSH configuration
If you're connected to a remote host using the [ssh extension](https://code.visualstudio.com/docs/remote/ssh) you might want to force WakaTime to run locally instead on the server. This configuration is needed when the server you connect is shared among other people. Please follow [this](https://code.visualstudio.com/docs/remote/ssh#_advanced-forcing-an-extension-to-run-locally-remotely) guide.
## Uninstalling
1. Click the Extensions sidebar item in VS Code.
2. Type `wakatime` and hit enter.
3. Click the settings icon next to WakaTime, then click Uninstall.
4. Delete the `~/.wakatime*` files in your home directory, unless you’re still using WakaTime with another IDE.
## Contributing
Pull requests, bug reports, and feature requests are welcome!
Please search [existing issues][issues] before creating a new one.
To run from source:
1. `git clone git@github.com:wakatime/vscode-wakatime.git`
2. `cd vscode-wakatime`
3. `npm install`
4. `npm run watch`
5. Install the extension from the marketplace
6. Then symlink `~/.vscode/extensions/wakatime.vscode-wakatime-*/dist/extension.js` to `./dist/extension.js`
Or to run the web version from source:
1. `git clone git@github.com:wakatime/vscode-wakatime.git`
2. `cd vscode-wakatime`
3. `npm install`
4. `npm run compile`
5. `npm run open-in-browser`
6. Go to [localhost:3000](http://localhost:3000/) in your web browser
Many thanks to all [contributors](AUTHORS)!
Made with :heart: by the [WakaTime Team][about].
[wakatime]: https://wakatime.com/vs-code
[api key]: https://wakatime.com/api-key
[wakatime-cli help]: https://github.com/wakatime/wakatime-cli/blob/develop/TROUBLESHOOTING.md
[wakatime-cli configs]: https://github.com/wakatime/wakatime-cli/blob/develop/USAGE.md
[how to debug]: https://wakatime.com/faq#debug-plugins
[plugins status page]: https://wakatime.com/plugin-status
[winca]: https://github.com/ukoloff/win-ca/tree/master/vscode
[issues]: https://github.com/wakatime/vscode-wakatime/issues
[about]: https://wakatime.com/about
近期下载者:
相关文件:
收藏者: