Select spaces on double-click in IntelliJ? - intellij-idea

Is it possible to configure IntelliJ / WebStorm to select all spaces and tabs when I double-click on spaces in code, as many other editors do, rather than select the enclosing line or preceding word?
E.g. when I double-click the spaces between a and =:
a = 1;

AFAIK it is not possible in IntelliJ.As a workaround, you could select/mark a space and use the shortcut [Ctrl+Alt+Shift+J] to mark all spaces in code.
With [Alt+J] you can extend the selection of the spaces one by one.

Related

How to shift multiple lines of code in IntelliJ by a single space?

Am trying to shift multiple lines of code in intellij IDEA by a single space using Tab shortcut but it always shifts by 4 spaces rather than a space. I have tried Edit > Convert Indent > To spaces but to no avail.
How do you shift multiple lines of code by a single space without messing with the default configuration for the file?
As #Andrey already suggested, I would use the Multi Cursor feature that has been around since intellij idea version 13.
I like the Add selection on Next Occurrence feature very much. It helps me to edit multiple lines very fast.
This screenshot shows the action in the Settings -> Keymap screen.

How select text wrapped in quotation marks in NetBeans

For example, I have a string wrapped in quotation marks, and I need select it all string wrapped. I usually select one by one each word using "Shift+Ctrl+Right Row" to the end. But it's not cool.
You can select the entire word by using the shortcut Alt+Shift+PERIOD.
if you are in a line with several words you can use this shortcut several times and the selection will move to the next words.
If by any chance you don't like the shortcut you can change it.
In Netbeans just go to menu Tools -> Options and choose Keymap. The shortcut that you will be looking is "Select Next Element".

How to replace all tab characters in a file by sequences of white-spaces in intellij?

Given a file in my project, I want to be able to replace all of the tab characters in the file with white spaces. Is there any way to do this in intellij?
Go to Edit | Convert Indents , and then choose To Spaces or To Tabs respectively. It's in the documentation: Changing identation
Replace only tabs used for indentation
Ctrl + Shift + A
type "To Spaces" > Enter
Replace all tabs
Ctrl + R
check Regex
Enter \t and spaces
Replace all

Adding spaces in multiple lines simultaneously - in Pycharm

I occasionally need to go line-by line and change the indentation of the code.
Is there a shortcut in Pycharm where I can add spaces (format the indent) in the begining of multiple lines simultaneously without processing each line individually?
Highlight/ select the lines you want indented, then press TAB as often as needed until they reach the proper indent level.
You can remove spaces with SHIFT TAB.
You can also use CTRL+ALT+I to auto-indent the selection.
Select the block that you want to indent then press TAB. It will work.
To auto indent all the codes in Pycharm just press these sequencies:
CTR + A to select all the text files and then press
CTRL+ALT+I
Select all that you want to indent, then do CTRL+ALT+I to indent all of it. This should work in Pycharm
Use shift +alt on windows machine
Continuation indent for Mac pro: Preferences -> Editor -> Code Style -> the language -> Tabs and Indents
If Ctrl + ALT + I is not working and every time needs to press the Insert button to get the pointer.
So go to Tools -> Select Vim if it is checked then it will be disabled.
Now you can intend code directly selecting multiple lines.

Add quotation marks to selected word via shortcut

Is there any way (Plugin, Script) to add quotation marks (or square brackets or parentheses) at the beginning and the end of selected text via a keyboard shortcut in the Kate editor?
I think of something like selecting a word and then pressing Ctrl-U (this would upcase the selected word). Is there something similar for quotation marks?
The "Configure Shortcuts" menu does not provide this option.
This should be possible to do by using Kate's Javascript plugin system: http://docs.kde.org/stable/en/kde-baseapps/kate/advanced-editing-tools-scripting.html.
By finding the word at the current cursor position and inserting text before and after, you could create a “surround with quotation marks” function.
For an example of a Kate script, see here: http://kucrut.org/move-cursor-to-next-prev-paragraph-in-kate/.
One solution would be the following:
Go to Settings > Configure Kate > Editing
Activate the Auto brackets option
Now you are able to wrap the selected text with brackets.
Though there is one drawback. The Auto brackets option is "always on", meaning that once you type "(" the corresponding ")" also comes up.