Skip to content

wakatime/visualstudio-wakatime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WakaTime for Visual Studio

Build Status Coding time tracker

Visual Studio extension to quantify your coding using https://wakatime.com/.

Installation

  1. Inside Visual Studio, navigate to ExtensionsManage Extensions...
  2. Click the Online category at the left, then search for wakatime.
  3. Click the Download button, then click Install.
  4. Click the Restart Now button.
  5. Enter your api key, then press enter.
  6. Use Visual Studio and your coding activity will be displayed on your WakaTime dashboard.

Screen Shots

Project Overview

Supported Visual Studio Editions

  • Visual Studio 2015 (supported by v13.3.0 and earlier)
  • Visual Studio 2017
  • Visual Studio 2019
  • Visual Studio 2022

Visual Studio for Mac

Visual Studio for Mac is supported with the WakaTime for Monodevelop extension.

Visual Studio Express

Microsoft does not allow extensions for Visual Studio Express edition in the gallery. To use WakaTime for Visual Studio Express, download and install WakaTime for Express.

Alternatively, you may clone the github repo and build the extension using the Express build profile. The resulting bin/Express/WakaTime.vsix extension file will install into Visual Studio Express when run.

Contributing

Pull requests and issues are welcome! The main thing to know is we require specific branch name prefixes for PRs:

  • ^major/.+ - major
  • ^feature/.+ - minor
  • ^bugfix/.+ - patch
  • ^docs?/.+ - build
  • ^misc/.+ - build

To open and build this project, please use Visual Studio 2019.

For debugging, configure the product to open in a new Visual Studio instance:

  1. Open the project properties (ALT + ENTER)
  2. In the Debug tab, set to Start external program. e.g: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\devenv.exe
  3. Add command line arguments: /rootsuffix Exp
  4. Change the solution according to the version of Visual Studio you're targeting:
  • Release - Visual Studio 2015+

Note: The Debug solution is only for including debugger symbols.

Troubleshooting

Look for a ToolsWakaTime Settings menu in Visual Studio. If that menu doesn't exist, something prevented the WakaTime extension from loading.

Turn on debug mode from ToolsWakaTime Settings.

Are there error messages in your Visual Studio Output window?

Open the Output window from ViewOutput (ctrl + alt + O).

Output Window

If there are no messages in your Visual Studio Output window, check your .wakatime.log file:

C:\Users\<user>\.wakatime.log

Lastly, uncaught exceptions go to ActivityLog.xml. Uncaught exceptions are rare, so check your ActivityLog.xml only after checking your Output Window and .wakatime.log file.

The How to Debug Plugins guide shows how to check when coding activity was last received from your IDE using the User Agents API. For more general troubleshooting info, see the wakatime-cli Troubleshooting Section.