How can I make the Home key move the caret to the beginning of the current line? I am aware of the Keymap setting "Move Caret to Line Start". I have re-mapped this to Home.
But this actually seems to move the caret to the start of the text on the line, not the start of the line (i.e. column 1). Pressing Home again will move it to the start of the line.
I have also tried using the IdeaVim plugin. In my case, the full VIM key mappings are not desired, but I did notice that it is capable of making Home move the caret to the start of the line, which to me implies that it's possible.
In NetBeans, there are different commands for "start of line" and "start of text on line". I haven't yet been able to find that with IDEA.
Settings (Preferences on macOS) | Editor | General | Smart Keys | Home moves caret to first non-whitespace character -> disable.
Related
I'm in the process of switching (with some specific PHP production context) from Sublime Text(4x) to PhpStorm (2022.2).
I am of course trying to migrate as many features/habits as possible, as identical as possible to my new environment. Many things I have managed to do but I have a showstopper when it comes to using/keymapping the Home-/Pos1-Button as I was used to.
What I want:
Being somewhere in a line of (PHP) code I want to press the Home-/Pos1-Button to immediately get to the (really) first character(0) of the line which is the widespread default behaviour of that key.
What I get (problem):
When I hit that button once PhpStorm IDE moves the caret to the beginning of the first word/non-whitespace character of the current line and I need to hit the key again to really get to the beginning of the line. I have tried a couple of things but I get the feeling this is "intended" non-configurable behaviour...
Any help would be greatly appreciated.
I tried googling and configuring Settings > Editor > Keymap in many ways but did not succeed...
Go to Settings (Preferences on macOS) | Editor | General | Smart Keys | Home moves caret to first non-whitespace character -> disable.
(running MacOS)
I'm used to option+left/right arrow moving the caret to the end of the word. In IntelliJ it instead moves to the next word, see below example.
If I'd press option+right arrow, the caret would move to below position:
Can I somehow configure IntelliJ so that it moves to below position instead?
IntelliJ IDEA 2019.2 introduces the following new options for the Caret Movement (File | Settings (Preferences on macOS) | Editor | General):
Set the "When moving by words" option to "Always jump to word end".
How to make line number visible in PhpStorm 2016.1?
I can't find setting in preferences.
Use CMD+SHIFT+A (on Mac) to search for actions across the IDE, including the preference pane. In this instance, typing "Line Numbers" into the search box takes you right to the preference pane for that option, with it highlighted nicely for you (http://c.hock.in/17c45d.png). This works for any settings you can't find, or want to find quickly.
Preferences if your are on Mac | Editor --> (General) --> Appearance --> Show line numbers.
File->Setting->Editor->Appearance->show line numbers for Windows users
1.
PhpStorm 2016.1 for Active Editor only
Main Menu:
View -> Active Editor -> Show Line Numbers
===========================================
2.
PhpStorm 2016.1 for all tabs
Main Menu
File -> Settings:
After upgrading from 7.x to 8.x I noticed an annoying new "feature". When on an empty line (after pressing enter), then pressing backspace (which used to get rid of the indentation character right in front of the caret) the line is erased and the caret jumps back to the end of the line above.
Given the following code snippet and caret placement:
pressing Backspace does this:
How do I turn this off?
As of PhpStorm 9+, this setting is located in it's own section under Editor > General > Smart Keys > Backspace. Setting the Unindent drop-down to Disabled will give you the behaviour you would expect.
The solution is to disable "Backspace smart indent" by going to File > Settings (or pressing CtrlAltS) then
navigating to IDE Settings > Editor > Smart Keys
searching for Backspace smart indent
and removing the tick from check box next to said option.
I am wondering how to align (the keyboard shortcut) a line or a block of code with the previous line, so that they have the same indention or starting from the same column in IntelliJ and PyCharm.
cheers
I think that "Emacs Tab" could help you. You can use setting search to find it or you can go Preferences -> Appearance & Behaviour -> Keymap. It is editor action and in some Keymap settings it doesn't have assigned key shortcut. I personally prefer remap Tab key to this action.