How to transform selected text to lowercase in PHPStorm? - keyboard-shortcuts

There is Ctrl + Shift + U shortcut, but it toggles characters case while I need to make all of selected characters in lowercase.

Other way. Select text. Hit Ctrl+shift+a type 'toggle case` and hit selected action

Ctrl+shift+a works again at least in PHPStorm 2017.2.4

For phpStorm 2020 on MAC:
Shift + Command + U
Check out in https://www.jetbrains.com/help/rider/Toggling_Case.html

Related

Is it possible to do block-comments in Google Colab?

In Jupyter Notebook, you can toggle/comment a block of selected code with Ctrl + /, but this doesn't work in Google Colaboratory notebooks. Is there a way to comment out several lines of Python code easily in a Colaboratory notebook?
I've looked in the documentation, but I came up short.
In the default Colab keyboard shortcuts, you can block comment text using Ctrl+/.
If this does not work for you, check Tools->Keyboard Shortcuts and search for "Comment Current Line" to see what the shortcut is within your current settings.
You can select the lines of code and press (Ctrl + /) to comment or uncomment your selected lines of code.
You can also use triple single quotes (''') at the start and end of the code block you are interested to comment out.
''' ...Your commented code... '''
If you are a Mac user, you can use Command + / for commenting out, and if you want to uncomment again, select the lines and then Command + /.
For Mac users who don't have an American keyboard like me: it seems like Colab thinks you are using an American keyboard for shortcuts, and so to make the '/' character you have to press the second button to the right of the 'm'. I'll leave an image to explain.
My keyboard looks like this:
As I said, I have to press the . key to make '/' as if I were using an American keyboard.
For Mac users:
first select the lines that you want to comment
second push these buttons: Command + Ctrl + Shift + /
Especially in the Italian keyboard it would be: Command + Ctrl + Shift + 7 (because the "/" character is combined with button "7")
For some reason, I need to do Ctrl + Shift + :.
Which technically is Ctrl + /.
(I use an AZERTYUIOP keyboard.)
if you come here with an Italian keyboard you should press:
command + control + .
When using Mac the keyboard shortcut is ⌘+/.
Note that depending on your layout, / cannot be directly addressed and its combination is different when combined with ⌘. For example, on a German keyboard / is [Shift]+7 but the combination ⌘+/ is ⌘+[Shift]+ß.
When you are unsure about which combination is correct, use the inbuilt keyboard viewer which provides a live view of the meaning of keys while selecting modifiers.
Keyboard Viewer: default keyboard mapping
Keyboard Viewer: modifier keys keyboard mapping

Which shortcut to use flags on top 'find'/'replace' dialog in IntelliJ?

How can I toggle flags like 'Match Case', 'Words' in find panel?
How can I replace all occurrences without using a mouse?
General rule for underscored options like is to use combination of alt + underscored letter, so in this case it would be alt + x.
In case of the buttons Replace, Replace all and Exclude underscored letter shows when you use alt button. The shortcuts are alt + p for replace, alt + a for replace all and alt + l for exclude.

IntelliJ shortcut to comment line

There is a way in webstorm to comment or uncomment a specific line or selected block of source code with shortcut?
I try to use CTRL + / but doesn't work for me
References
https://www.jetbrains.com/help/idea/mastering-keyboard-shortcuts.html
Try to use Ctrl+Slash or Ctrl+Shift+Slash for block comment
If this doesn't work show in your Setting -> Keymap -> Search comment
Use CTRL+/, but with the / located on the numpad.
The question remains why commenting with / (the one besides .) does not work (it does not for me, either).
Ctrl + / ==> To comment/uncomment a line .
Ctrl + Shift + / ==> To comment/uncomment block of code.
Ctrl + Y ==> To delete a line.
On a Mac with an extra keyboard it is CMD + Numpad's /.
The one on the native Macbook keyboard I did not get to work.
Check this post as well: Intellij comment shortcut opens help tab on the Mac menu bar
On Windows with a German keyboard layoout the default keyboard shortcut for the comment lines action Ctrl+/ conflicts with the bookmark shortcut Ctrl+7. You need to remove the keyboard shortcut for bookmarks in order to get this to work.
#Note Shortcut IntelliJ IDEA
Ctrl + / => comment or uncomment a line -> //
Ctrl + shift + / => comment or uncomment block of code -> /**/
Ctrl + y => delete a line
Ctrl + d => duplicate a line
If Ctrl + Shift + / doesn't work , try Ctrl + Shift + Num Pad /.
You can check the exact configuration in settings->keymap.
Commenting out each line of selected code for Mac users without numpad would have to add a keyboard shortcut:
Navigate to settings: Preferences > Keymap > Main menu > Code
Double click on Comment with Line Comment
Insert your shortcut, for example: cmd + shift + 7 would be interpreted as shift + cmd + 7 but works the same.
I have an AZERTY keypad in French, so this was the answer for me :
Ctrl + Shift + / on the numpad
Because / out of the numpad was detected as :, even with Caps Lock on.
You can check how the keystrokes are actually detected by IntelliJ in :
On Windows :
Settings > Keymap > click on the icon of Magnifying glass with cubes (tooltip is "Find Actions By Shortcut"). In the little tooltip that opens, you stroke the keys and observe the registered results.
On Ubuntu :
Settings > Keymap > click on the icon of Keyboard, right next to the search input (tooltip is "Find Actions By Shortcut"). In the little tooltip that opens, you stroke the keys and observe the registered results.
You need to activate this option:
'Settings' > 'Keymap' > 'Use national layouts for shortcuts (requires restart)'
As said before on Mac Montery 12
on Idea 2020.3
CMD + NumPad /
or from Action dialog:
It is necessary to switch to the English layout
its possible to use inellij IDEA by the way you customized before with an IDE like VisualStudio
Settings -> KeyMap -> Choose your old IDE its a grate! feature life saver :)
try ctrl + shift + 7 or num lock and then ctrl + /
control + / (this is the mathematical one which is located on the numbad)

Does IntelliJ have a `Ctrl` + `K`,`Ctrl` + `D` Sublime equivalent? How do I skip a match when using Alt+J for multiple selections in Android Studio?

I want to have the 'Ctrl'+'K','Ctrl'+'D' functionality of Sublime in Android Studio, how do I do it?
Perfectly similar to this question, but with respect to Android Studio.
How do I skip a match when using Ctrl+D for multiple selections in Sublime Text 2?
I use Ctrl+D to add to selection (discrete multiple select) the next occurrence of the string (or substring) highlighted. And to skip adding next immediate selection to selection but the one after it, I use Ctrl+K, Ctrl+D. How do I do the same in Android Studio.
I just know Alt+J is similar to Ctrl+D (found from Keymappings in Android Studio).
And to deselect the last selected it's Alt+Shift+D.
But how do I skip next occurrence?
My question is in no way related to:
Does IntelliJ IDEA have a `Ctrl` + `K`, `Ctrl` + `D` equivalent?. That's Visual Studio equivalent. I want the SublimeText equivalent.
Check http://blog.jetbrains.com/idea/2014/03/intellij-idea-13-1-rc-introduces-sublime-text-style-multiple-selections/
Select next occurrence: Alt + J (Ctrl + G for Mac OS X)
Unselect next occurrence: Shift + Alt + J (Shift + Ctrl + G for Mac OS X)
Select all occurrences: Shift + Ctrl + Alt + J (Ctrl + Cmd + G for Mac OS X)
Remove all selections: Esc
Add/remove a selection: Alt + Shift + Mouse Click
It is described in this Issue that was initially created because this skip-next was missing.
Anyhow you just press F3 to skip next possible selection.
If you are using OSX, there are two answers, depending on what keymap you have selected in Preferences:
Keymap : Mac OS X 10.5+
To start / add to your discrete multiple selection : CTRL+G
To skip the current selection and move to the next : CMD+G
Keymap : Mac OS X
To start / add to your discrete multiple selection : CTRL+G
To skip the current selection and move to the next : F3
(this mode is really awkward IMO - no flow)
If you have more follow up questions I had success asking support via this thread : https://youtrack.jetbrains.com/issue/IDEA-121956
Go To Settings -> Keymap -> Main Menu -> Edit -> Find
OR Search for the following options in Settings -> Keymap
Set the shortcuts for the following (Linux/Mac) :
Add Selection for Next Occurrence : Ctrl + D/Cmd + D
Find Next/ Move to Next Occurrence : Ctrl + K/Cmd + K
You might also want to setup Unselect occurrence:
Unselect Occurrence : Ctrl + U/Cmd + U
Carefully remove/replace/override any other existing bindings with these shortcuts according to your needs. You should have Sublime Text Ctrl+D, K behaviour working.
Note: Test these shortcuts for functionality with the default key bindings first. This will ensure, you get working shortcuts with your favourite shortcut keys.
I needed to use sublime's Ctrl+D (switch between multiple selected).
The F3 key worked for me.

IntelliJ IDEA shortcut for switching to tab by number

In FireFox, I'm constantly using the Ctrl + 1-9 shortcut to switch tabs. Basically Ctrl + 1 will take me to the first tab, Ctrl + 2 will take me to the second one and so on.
Is there an equivalent for this shortcut in IntelliJ IDEA?
UPDATE:
You can now assign keyboard shortcuts to navigate to the specific tab number:
Original obsolete response:
There is no such feature in IDEA, however you can use Alt + Arrows and Ctrl + E (Recent Files) to navigate between tabs.
Other handy actions from the Go To menu:
Back / Forward (Ctrl + Alt + ←/→)
Last Edit Location (Ctrl + Shift + Backspace)
Another option is to use the GoToTabs third-party plug-in:
The plugin adds menu actions allowing you to go to a specific tab. You
can of course assign keyboard shortcuts the individual actions and for
example achieve the behavior known from other editors/IDEs where you
can switch between tabs with alt+num.
The IDE itself still doesn't support it but I've created a plugin (GoToTabs) that will add "Go to tab #" actions you can assign keyboard shortcuts to (e.g. ctrl+1).
you also can use ctrl + tab to active switcher
after ctrl + tab and keep holding ctrl for other operations
ctrl + number is for bookmarks feature.
Since this is one of the first hits when Googling this, note that as of IntelliJ IDEA 2018.3 EAP this is now possible. From the feature request tracker:
In upcoming 2018.3 EAPs you're welcome to assign shortcuts you need for new actions in the group 'Other', see a screenshot. With these actions you can select tab1..tab9 and also the last tab.
To accomplish this:
Go to Keymap in Preferences
Search for "select tab"
Individually assign Command+<number> to each of the tab numbers mappings
You can use this short cut on mac
Shift + Command + { or }
Not sure what you asking is possible but Navigate as below in intellij idea (13) to switch tabs in one level,
File
└────Settings
└─────────Keymap
└────── Editor Tabs
Where yo can map for actions "Select Next Tab" and "Select Previous Tab", under "Editor tabs" in keymaps. Following is an example for emacs keymap.
cmd+shift+[ - go to previous tab
cmd+shift+] - go to next tab
Actually, there is an option, pressing Alt + Tab a switcher will pop up.
Like this:
[
If you are using IntelliJ's IdeaVim plugin, the vim style shortcut works as well:
gt, go to next tab
gT, go to the previous tab
1gt, go to the first tab
2gt, go to the second tab
3gt, ....
If a tab has a number with an underline like this example, you can use Alt + 9 to switch to it. But not all tabs have a underlined number.
MacOS:
Next tab: ⇧ + ⌘ + ]
Previous tab: ⇧ + ⌘ + [
if you use ideavim, you can use num+gt to go to the specific tab. for example, 2gt lead you to the second tab.
Keymap -> Other -> Tabs.
Then setup what you want