How can I remove indentation from the left of code in JetBrains editor?
I am using WebStorm. It is kind of an indentation in which I can not write anything.
IDEA-148002: it seems to be unresolved till now issue. ) :
Related
How to get rid of this highlighted part. It is not code but IntelliJ is trying to make this code more readable by suggesting this. It is super irritating
I expect code to be viewed in simple way
I disabled the inlay hints for everything from IntelliJ settings and Now issue is resolved
For whatever reason, Intellij is highlighting the wrong bracket pair:
Intellij highlighting wrong bracket pair
Yet it works in any other text editor on the same exact code:
Vim highlighting correct bracket pair
For almost every bracket, Intellij either highlights the wrong pair or doesn't highlight at all. This issue is unusual, so I'm not sure where to look into it. I've tried testing the bracket matching on all kinds of code in Intellij and it almost always highlights the wrong pair. I also reinstalled Intellij but that did not fix it. I'm using IntelliJ IDEA Community Edition 2020.3.1 x64
I figured out what's wrong. It turns out the reason this happens is because Intellij Community Edition doesn't support Javascript. So I installed the Ultimate Edition which does support Javascript, and it works now:
Intellij Ultimate highlights bracket pair correctly
There is a plugin in vim which shows you "dots" (or lines, etc.) where the indentation level is.
Example:
Is there something similar for IntellIJ IDEA?
Go to Settings/Editor/General/Appearance and select Show vertical indent guides to enable this feature in IntelliJ.
I believe you were looking for General > Appearance > Show Whitespaces. I had to follow that with adjusting the "Whitespaces" color because of using a dark theme.
If my code reaches the right magin and I reformat code (Ctrl + Alt + L), PHPStorm automatically wrap code. How do I stop this (reformatting code with wrapping)?
I'm working with php and other languages for web development
See under Preferences > Code Style, where you can tweak by language.
Also check the settings under Preferences > Code Style > General (affects all languages):
I found this worked for me for the auto format wrapping issue:
Preferences > Editor > Code Style > HTML
From there, change the Wrap Attributes dropdown select to Do not wrap and I also unchecked the box Wrap Text. See below:
Edit: I should add that I have the PhpStorm version 2018.2
In newer PhpStorm (and other IntelliJ IDEA based IDEs) versions option is renamed to Wrap on typing and moved to Preferences -> Editor -> Code Style.
I know the shortcuts to navigate between errors in IntelliJ (F2/shift + F2). But they don't select the text. They just put the cursor at the beginning.
In Eclipse they select it. I like this because then I just have to start typing, or paste something to correct it - which is very useful when there are a lot of errors with the same pattern. Is there a way to reproduce this functionality in IntelliJ?
There's no such shortcut in IntelliJ IDEA, as the number of cases where fixing an error requires replacing some expression is actually far from 100%. You can get similar results by pressing Ctrl+W (Select Word) shortcut after being navigated to an error.