About intellij idea config - intellij-idea

Is it possible to somehow configure the intellij idea so that it warns when there are more than 100 characters on one line?
I would like to speed up my work in the editor, and I would like to decide such things in advance.

Related

How to edit space size for indentation

I feel comfortable working with 4-space indentation. However, most of my colleagues want 2 spaces. The linter is set up for 2 spaces.
Is there any way to make WebStorm displays 2 spaces the same size as 4 spaces? So when the code on my local machine would display the way I want and the way the others want on other machines.
Currently, there is no way to achieve that. Feel free to vote for "Virtual indents" feature on YouTrack: https://youtrack.jetbrains.com/issue/IDEA-237957
The Elastic Indents plugin seems to do what you want (I haven't tried it myself).

Intellij Idea's console increase max symbols per line

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.

Intellij IDEA 14 Ultimate cursor jumping around in Java Code when hitting Enter from time to time

Sometimes when i hit Enter behind a line to write the next line my cursor jumps down like 300 lines of code within the same Java class which is absolutly annoying.
It jumps just to anywhere within the same file but always somewhere faar below the line i hit enter behind ... so its not jumping to a definition or something like that - it literally just places the cursor to a random point.
Did anyone ever had a similar experience? (I cant find anything on the internet hence i think its either a very easy to fix thing or something for the support).
Like could this be a side effect of defined live templates or something like that?
ANY suggestion could help since i tried out anything i could think of (code completion, live templates, editor settings - nothing looks like it would trigger this behaviour)
Note: I dont like this question at all but i am realy lost right now.
I have not seen any one run into this nor have I seen a bug report on such (and something like that would be a critical). I recommend the following steps:
Upgrade to the latest v14.0.3 if you are not at that version
Invalidate your caches and restart, then wait for IntelliJ to re-index your project (this is a bit of a long shot, but worth the couple of minutes it takes)
File/Application > Invalidate Cache
Disable all third party (i.e. non-bundled) plug-ins and restart
My strongest suspicion is that a 3rd party plug-in is causing the issue.
If this solves the issue, isolate the plug-in causing the issue and contact the developer.
If none of the above work, provide as much detail as you can about the issue as #Makoto suggests. What type of file; what are you doing; OS; IDEA version; etc, etc.

running grails unit tests in vim

Im trying to find a way to run my grails unit/integration tests in vim without having to leave my editor. Is there a good plugin for that? I took a lot of tips from here http://www.objectpartners.com/2012/02/21/using-vim-as-your-grails-ide-part-1-navigating-your-project/ but I dont want to have to switch to just see the output.
I tried it with a keymap but grails has to start up each time. Any ideas? How do you guys do this?
I also found this https://github.com/hoffoo/vim-grails-console but couldn't get it set up properly.
Thanks!
I've started to use Tim Pope's vim-dispatch plugin to execute tests in a shell and then report the results back to vim. You can see my version of executing a grails test in my dotfiles repo, specifically, in grailsScripts
In order for the plugin to report back to vim, you need to set an errorformat. I've battled with vim's errorformat for quite awhile and ultimately landed on using a combination of reformatting the output with a groovy script and using errorformat to highlight file paths. The result is that you see the entire grails output in the error list, but can hit enter on lines with file paths and go to the line in question. It's not perfect, but it works.
If you are interested in using that method, you'll want to also get the following files from my dotfiles:
.vim/tools/filters.groovy
.vim/compiler/grails.vim
Note that these scripts work in my setup, but I haven't made them into a plugin yet, so your mileage may vary. I hope it helps!

IntelliJ Idea 11 - How to count lines of code(LOC)?

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.