There is an old question about it, I just tried Statics plugin as some people mentioned, but I couldn't find anything associated with it after Idea restart. Does anyone knows a way(plugin, etc..) to count lines of code(LOC) using IntelliJ Idea 11?
View -> Tool Windows -> Statistic
I was also searching for this a while.
Related
I use PhpStorm for many years and for all this time the search results for "Search Everywhere" were separated in "Chapters" for Classes, Files, Actions and so on, as its shown in this screenshot (from the internet).
But recently I noticed that these "chapters" are gone and everything is just mixed together without any separation.
Now its very difficult for me to find what I'm looking for. I searched everywhere in the settings but couldn't find any options to bring back those chapters.
Am I missing something or is this feature just gone?
I'm using PhpStorm 2020.3.2.
Thank you very much for your help.
The behavior can be enabled back by disabling search.everywhere.mixed.results in Registry. To access it open Help > Find Action and type "Registry".
I would like to see all compilation/syntax errors in a single list, so it would be easier to understand what should be fixed. I would describe it like something similar to vim`s quickfix window.
Currently I'm using Analyze -> Inspect Code..., but it lists all inspections, which could be sometimes too much. I can probably configure different profiles for inspections and switch between them, but probably there is some other approach which I miss?
When you run Build | Build Project, the Messages toolwindow will display the list of all compilation errors.
The question is unclear so I'll answer the two possible questions.
For IntelliJ IDEA you can use Build | Build Project.
For Go functionality / GoLand, you cannot use this, it's not supported. Follow https://youtrack.jetbrains.com/issue/GO-4618 for updates there.
Intellij idea wraps console output in the run window, how I can increase N after which wrap happens?
as you can see wrap happened on the last line, how I can configure IDE not to wrap so short lines? I have a lot of free space in this window
P.S. windows, golang plugin for Intellij idea
Thanks!
there's already a ticket for this on the issue tracker of the plugin, please see this issue. However, it's dependent on a platform issue, please see this issue. My advice would be to track either of the issue in order to know when this is fixed, unfortunately it's not much that the plugin can do right now as far as I can tell.
I would like to categorize SonarQube results by severity 'major'. I have installed SonarQube plugin in intellij community edition(version 14.1.4). When i try to run the sonar Analyze -> Inspect code, The inspection window shows all the issues by rule but does not categorize the issues by major, minor and critical. I would really appreciate if anyone has achieved this using IntelliJ IDEA Community edition.
According to this open github request, it looks like it used to be there in v1, but was subsequently removed. For what it's worth you can do this to help (excerpt from the link):
Expand All
Click somewhere in the window and start typing Type MAJOR
if you want to find all MAJOR issues
I found that in Intellij 2018.3.4, it's more useful to do code analysis through the main menu: Analyze->Inspect Code, which does a good job of grouping them by rule. It's not the same as Sonar, but there's a lot of overlap. Hopefully the plugin eventually gets improved.
There is no easy and direct way to categorize severity with SonarLint plugin on intellij.
Below is what I found helpful.
So goto to File->Settings->Sonarlint-> General settings-> Rules
Enable/Disable Blocker, Critical, Major rules of your choice. Re-run analysis to see only the rules you want.
Like-wise select all blockers if you need to see blocker issues only.
I have been developing a project which contains a TestLauncher class that'll read a given directory and for each file it contains, run it against my tool and yield the results.
So, when coding in Eclipse, it would show up one result for each test (as expected). Today I've been toying with Intellij, and I've decided to try to run and code a bit of this project in Intellij.
When trying to run the tests, though, it seems to be only showing up 2 results instead of the 100+ it should. Although I am sure it is running the full suite, it seems to be folding all the results of a given category in a single result. That means that if I have at least one failing test in each category, it shows up as a "failed test".
I guess this must not be a bug, but rather some configuration that I am not aware about and that is on by default in Intellij but not in Eclipse. Could anyone explain what might be going on?
Edit: I am using the latest Intellij (downloaded one of these days).
Thanks
What you're seeing is simply a difference in the way the Eclipse and IDEA plug-ins are implemented. I implemented the Eclipse plug-in to be pretty clever in its display, so it will show different things depending on various factors such as the presence of a toString() method in your test class or whether your test class implements org.testng.ITest.
I suggest you ask this question on the IDEA forums and if you don't get any response, feel free to email the testng-users list and I can put you in touch with the JetBrains engineer in charge of the TestNG plug-in.
The IntelliJ-IDEA TestNG Plugin has a filter symbol called "Hide Passed" above the output Test Results. You can toggle that to display all tests, including the passed ones.