How does add indent in WebStorm when use Ctrl + Alt + L (formatting code)?
I want to see that result.
or
I want that it was in all .ts file e.g..
Related
I can't figure out how to indent blocks of code in Google Colab. Pressing the tab does not indent. Right now, I'm resorting to pressing space twice for each line of code.
Simply do the following.
Select the text you want to indent.
On Mac, press command + curly braces
Mark the lines and you'll see the different kinds of indentation.
Copy the original indent and paste it instead of the new one.
Do the following.
Select the text you want to indent and then
On Windows:
Press Ctrl + { for the left indent
Press Ctrl + } for the right indent
On Mac:
Press cmd + { for the left indent
Press cmd + } for the right indent
What is the symbol next to the shift sign ?
Alt click doesn't do anything either.
That's Escape .. so the whole shortcut is Shift + Escape.
Some links:
http://osxdaily.com/2010/11/07/mac-keyboard-symbols/
http://nedbatchelder.com/blog/200808/mac_keyboard_symbols.html
I use CTRL + SHIFT + N shortcut in Intellij to find specific Java files but it also shows .class files; i need to see only .java files. Is there any solution to exclude .class files from CTRL + SHIFT + N ?
You can filter the results using the little blue filter icon in the top right of the window:
Choose as few or as many as you need.
Is there an shortcut in nano for moving through a line faster? I have some log files with gigantic lines and getting to the middle of them is awful.
I know I could use a different text editor that doesn't have this particular problem (less will wrap lines), but I'm used to nano and I like a lot of its other features.
Here are the shortcuts for moving through a line in nano.
Use these to go faster through a line:
ctrl + space move one word forward in a line.
alt + space move one word backwards in a line.
Other line shortcuts:
ctrl + f move one character forward in a line.
ctrl + b move one character backwards in a line.
ctrl + a move to the beginning of a line.
ctrl + e move to the end of a line
To move to a specific line use ctrl + _.
You may want to check out more Nano Keyboard Commands
In Eclipse, I can select a few lines and press Ctrl + I to reindent those lines. How do I do the same in IntelliJ IDEA / WebStorm?
Note:
I don't want to "indent" or "unindent" the selected lines - that would "move" the text to the right or to the left manually. I want the IDE to be clever about how to position the lines.
I don't want to reformat anything, i.e. there should be no modifications to characters beyond the first non-whitespace character on every line.
Code | Auto-Indent Lines (Ctrl+Alt+I in Windows default keymap).
On a mac, it's Ctrl+Option+I by default.
What worked for me on mac was
⌘ + OPTION + L
Windows:
Ctrl + Alt + L
Mac:
⌘ + OPTION + L
In Webstorm the option can be found as "Reformat Code" in the keymap.
The default on Mac is Alt Cmd l