I have a VcsFullCommitDetails, calling .getChanges() is returning empty array all the time. Appreciate any help or hint how I can resolve that.
Take a look at methods in git4idea.history.GitHistoryUtils
See https://intellij-support.jetbrains.com/hc/en-us/community/posts/360001208300-Get-a-list-of-commits-in-project
Related
I am really struck and trying to find a way to remove all unused methods in Angular project
Basically I am restructuring the whole project and changing logic to accommodate the new structure. Above is the example screenshot.
Upon hitting Alt + Enter > I did not find anything to remove all unused methods at a go.
Tried the code -> code cleanup. But no luck
Kindly help
There is currently no way to do this (likely because such quick fix would be rather unsafe, because not all methods that are not called explicitly in your code are actually unused - like different lifecycle hooks). Anyway, if you miss it, please feel free to file a feature request to youtrack, https://youtrack.jetbrains.com/issues/WEB
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.
Is there anyway to do this? I have seen there is a -XnoOpt function, but that seems more global than only applying this to a particular class.
Any help would be useful ... even if to tell me this is not possible.
Thanks!
You can create an opt file, see
JRockit R28: http://docs.oracle.com/cd/E15289_01/doc.40/e15059/crash.htm#BABJGICB
Earlier releases: https://docs.oracle.com/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/crash.html#wp1010461
Is it possible to contribute quick fix in eclipse for non-java code (say xtend scripts or ant scripts ).
If yes, which extension should I use ?
Thanks,
Santhosh
IMHO no. You have to create a plug-in and write code in Java, If you have to extend/contribute to eclipse functionalities.
I got the solution.Thanks for your suggestions !!
I used the extension point org.eclipse.ui.ide.markerResolution as suggested.
The below link gives a detailed explanation
http://alvinalexander.com/java/jwarehouse/eclipse/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/MarkerResolutionGenerator.java.shtml
You can contribute quick fixes for anything as long as you know the marker type of the problem marker that you want to fix. Use the extension point:
org.eclipse.ui.ide.markerResolution
In there you specify the marker type (for example org.eclipse.ant.ui.buildFileProblem for ant build file markers) and a custom class to generate quick fix resolutions (IMarkerResolution instances). You can browse for the marker types if you're not sure of the right one.
I really like IDEA, but when I work with a webapp running on Tomcat and I modify only a single java class file, I have to do an update classes and resources and it takes much more time to do it than in eclipse. In eclipse it's instant, at least I don't notice anything, in IDEA it does a make and updates caches and I don't know what else but it's really annoying.
Why is that and how can I solve this?
Update would depend on your project and its configuration in IDEA. Normally it should not take too long as only the required steps are performed. Compilation is incremental and would be instant. In order to understand why it takes long for your project, we'll need the sample project and the exact steps to reproduce it, please file an issue to our issue tracker.
If you want really fast updates, you may consider using JRebel, it has plug-in for IDEA.
Not so with IntelliJ 10.x. Updates don't require a complete build and redeployment. Try the new version.
I am not sure but you can actually check your Project Settings. There in the modules section you can mark some of your unnecessary folders as excluded.
This might speed up your process as the unnecessary files are now not been indexed.