When I press tab IntelliJ inserts two spaces (which is what I want), but when I press delete IntelliJ only removes one space at a time. How do I make it delete to the tab boundaries instead of just one at a time?
I tried to solve this problem too, but it appears that it is not possible at the moment.
The closest solution to this problem is probably the Smart backspace feature, which will be present in IntelliJ IDEA 14. According to a comment in the blog post mentioned below it seems that the same functionality is planned for the Delete key, but it is probably not implemented yet.
http://blog.jetbrains.com/idea/2014/07/the-backspace-key-gets-smarter-in-intellij-idea-14-eap/
https://youtrack.jetbrains.com/issue/IDEA-87318
Related
In intellij 2022.1, I use Ctrl+Shift+R to bring up the Replace in Files window - it shows 100+ matches in 40+ files. The search string and the replace string differ in only one character, for example: this.bar.is.fooed and this.barf.is.fooed. I only need to replace certain instances based on nearby text.
I'm in the groove, clicking the Replace button, checking the next entry, clicking, checking, ... and thinking my brain can keep things straight (it can't; neither can yours:-) I'm halfway through when I realize the last few replaces were wrong.
How can I undo them? Ctrl+Z is grayed out. This related SO question doesn't say and neither does the JetBrains documentation!
Use Local History to revert the changes.
Undo/redo is not supported for Replace dialog, vote for the related request.
I'm using idea as my java ide. I don't know which keys I have pressed, There appeared a little square ahead of the project name.
Is there anyone help tell what's this and what impact it has.
You bookmarked the folder and you may view it in favorites. After you open favorites, you may delete it by clicking the (-) on the bottom left corner.
Also there is a bug i think. If it still shows-up after you remove from the bookmarks - switch theme to another one and go back to original one again. It disappears.
so this is annoying me because I use tab to leave brackets etc and when I use auto-complete and a semicolon is being placed after the bracket this happens:
https://streamable.com/i9as2
as you can see in the first statement I'm having problems "jumping" over the semicolon while when I dont use the auto-completion in the second statement (and don't get the semicolon automatically) it's way easier to navigate through it with tab. I know that there is the shift-enter shortcut but I don't really want to develop a habbit of using it so often because I can imagine trying to do that when working with my other IDE's can become quite annoying. I searched through the options but did not find any option do disable that behavior. Does anyone know a way to get around this?
Second Tab press should jump after the semicolon, I've created a feature request for that.
It's already fixed and the fix will be available starting from 2019.2 IDE version.
One of the more annoying aspects of IntelliJ for me is how the default way to delete a portion of text I highlight with my mouse is to press shift+delete, rather than simply delete. I'm aware that I can go to Preferences --> Keymap to customize controls like this, but I'm not sure exactly which function to change and how to set it to the delete key.
I'm using the 2016.1.3 Community Edition for OS X.
I figured out what was going on — I had rather absentmindedly installed the IdeaVIM plugin, which adds weird (vim-like) keybindings, one of which is that you need to press shift+delete to delete a highlighted portion.
I have a file from our repository where I ran auto-indent (because it was a mess), and now the whole file is marked by blue changebars (down the right hand side of the editor window), making it difficult to find my changes.
I am already ignoring whitespace changes in the diff window (as described here: Intellij and changes tab), is there a way to also do this in the editor window?
I couldn't find a way to completely ignore whitespaces, but IntelliJ (I'm using version 2016) lets you set an option to color whitespace-only changes differentely:
Editor -> General -> Different color for lines with whitespace-only modifications
which helps tremendously.
At the moment [idea 13.5] it seems that is not possible to ignore spaces in the standard editor. You can open a support ticket
We also faced this in the company due the different codestyles used, at the end we settle for:
setting a common codestyle that everyone editing the code should [actually must] follow
reformat the whole codebase to the given codestyle
recommit the formatted code [without any addition or deletion, just the reformat]
It took just a bit of time, but at the end now we are working far better. In this way from that moment onward, we would have all the time the code that would aesthetically the same trough next versions.
You can completely disable the highlight of whitespace modified lines in :
Settings -> Editor -> Color Scheme -> VSC -> Editor Gutter -> Whitespace-modified lines
And then uncheck the background color :
Essentially, you want Intellij to use the --ignore-all-space or --ignore-space-change upon a merge.
My developer team also deals with this challenge because we have different code formatting preferences. The result is every merge is painful for no reason. The team loves being able to have their code formatting, but this negates it.
As of now there is no solution. Intellij has the technology to ignore whitespace, so fixing this is really just adding a check box on the merge diff screen or even in the version control settings.
There is a feature requests IDEA-107714
Please up vote it!
https://youtrack.jetbrains.com/issue/IDEA-107714
Try this,
View --> Active Editor --> Show whitespaces
this is guaranteed to solve your problem