F4bioo / DiffLinesCounter

DiffLinesCounter is an open-source IntelliJ-based IDE plugin designed to provide quick insights into the number of lines changed in your current branch.
MIT License
0 stars 1 forks source link

Diff Line Counter compared to the base branch #11

Open hellosagar opened 4 months ago

hellosagar commented 4 months ago

I suggest adding a feature that allows the user to see the diff line counters compared to their selected base branch. This feature would consider the commits ahead of the base branch and any uncommitted changes. My team and I are interested in this idea, as we have been using this plugin for a while now.

I'm happy to add this feature myself, and it will help me learn plugin development as well.

hellosagar commented 4 months ago

How can I run the plugin? I'm trying to add the plugin configuration, but it failed to do so because it identified no module.

Screenshot 2024-03-06 at 2 52 44 PM
F4bioo commented 4 months ago

Hi @hellosagar, thank you for your interest in contributing to this project. To run it, you can follow the steps below.

  1. Go to Edit Configurations, which is the same screen in your screenshot.
  2. Press the plus button on the top left and choose Gradle. I believe you chose Plugin, but you need to select Gradle.
  3. In the Name input, type any name you want.
    • In the Run section, you need to find runIde.
    • Hit the apply button and then the OK button.

image

After these steps, you will be able to press the green Play button at the top to run the plugin.

Important: A new instance of IntelliJ IDEA will be launched, and you will need to choose to add a project and find the current project to open in this new instance of IntelliJ IDEA. At this point, the project is running (left pic below) in debug mode, and you can see the logs from the second instance (right pic below).

image

Currently, I am using this version, but I believe it can run on different versions: IntelliJ IDEA 2023.2.3 (Community Edition) Build #IC-232.10072.27, built on October 11, 2023.

hellosagar commented 4 months ago

Thanks a lot; that helped in running the project :)

Screenshot 2024-03-15 at 12 22 36 PM