Undo, Redo is jumping around and unpredictable (Test on PHPStorm) - intellij-idea

I'm using PHPStrom v 8.0.2
While i was hit command-Z to undo thing.
The editor jump around to somewhere but not to the cursor as illustrated image.
That makes me very annoyed.
Is this a bug or have i setting something wrong?
HERE IS HOW TO REPRODUCE
Edit any line
Place the cursor far... far away from the edit line
Hit command-Z to UNDO thing <-- The editor will jump to the edited line
Hit command-shift-Z to REDO thing, the editor jump back to the line in (2) <--- NO... IT SHOULD NOT
Seem like Jetbrains does fix this in PHPStorm v9 EAP.
But that program will expired after 30 days, Any where to implement this in PHPStorm v8.0.3 please?
One more thing, I can't find any keyboard shortcut key for auto indent for the whole document, please advise.
Best Regards,

This seems to be Intellij default behavior; it treats cursor movements as edit actions and as such they are being undone and redone.
See this post

Related

How to keep IntelliSense Complete Word option off?

IntelliSense has a mode where if you hit the spacebar, it will automatically type out the suggested auto-complete word. In order to prevent this from happening, you can hit the Escape key before pressing Space. This will close the autocomplete popup, so that the suggested word is not automatically typed.
I prefer the alternative setting, where I actually have to hit the Enter key to accept the suggested autocompletion. If I just type Space, I want a space to follow the characters that I actually typed.
I know that I can toggle between the undesired mode and the second mode I describe, which I do want. To do this, I click Edit -> IntelliSence -> Toggle Completion Mode.
My problem is that this setting never sticks. It constantly reverts to the wrong mode. I'm not sure exactly when it's changing, but it seems to revert back several times a day. If I change this for one Solution, it won't apply to my other Solutions. Even if I apply it to a solution, close VS, reopen, and start working again, it will have reverted.
Does this happen to everyone else, or is this unique to me? Is there some global setting that forces this feature to stay off always? Do I have a corrupted file somewhere that's causing this?
No, this is normal behavior and this setting behaves like what you described in the previous VS versions.
However, thanks to those members who is reporting this issue and Microsoft has fixed this behavior in the latest VS2019 version.
Since VS2015 is not supported by Microsoft so far, so this behavior cannot be fixed on VS2015 and I suggest you could install the latest VS2019 Community and get what you want.
Once you click the Toggle Completion Mode under Edit-->Intellisense, no matter you close VS, create a new project or a solution, use other c# file editor, it will never revert back.

In a PyCharm debugging session, how to move the cursor to to current line that is being executed?

I'm new with PyCharm. In a debugging session, the current line that is being executed is highlighted. I may look around in the code and lost where I am. Is there a quick way to go to the current line that is being executed?
BTW, I added other JetBrains IDE tags it's because I think they may have similar shortcuts or similar way to solve the problem. You are freely to remove them if you think it's not proper.
Run | Show Execution Point
(The action has a keyboard shortcut which depends on the keymap that you're using; the shortcut is shown in the menu.)

visual studio editor expand collapse widgets are gone

The plus / minus signs are gone to expand / collapse regions. The vertical lines to indicate regions are gone too.
The regions are collapsing and all the commands under edit, outlining work fine.
It's just I have to double click on the collapsed region to expand and there's no way to collapse a region with the mouse. Only the shortcut keys (ctrl m, m) or the menu will do it.
I swear it was right this morning but I did something to mess it up. I can't find any option in tools to fix it either.
UPDATE
Now, some files are doing this and other files (both opened at same time) are not doing it. If anyone can explain, I'm all ears.
Press ctrl+, (control plus semicolon) to open the settings. And type Folding Strategy in the setting's search bar. It is set to auto by default. You can set it to always for the controls to be visible at all times, otherwise, it shows only on mouse over.
This same thing happens to me multiple times a day using VS.NET 2015 Pro version 14.0.24720.00 Update 1. Restarting the IDE always restores normal function for a while but the problem always returns, seemingly at random.
UPDATE:
I tried changing the theme from dark to blue and it restored the outlining. I then changed back to dark from blue and the outlining continued to work normally. Still a pain but definitely a lot faster than restarting the IDE.
It happened with me also. One file was just fine and other file (js) was not. I searched it a lot.
Try selecting a method/if check etc and press ctrl+M+H which is short cut for right click outlining > Hide Selection.
You can do it on the whole document as well.
This might be helpful when working on a file which has too much code in it and you are going through different functions again and again. It is painful with scrolling mouse for so long.
You can use short cut for for moving at the start of the method or at the end of the method with the following :
select parenthesis { start or end } and press ctrl+}
Hope this helps.
It works again.
I closed all windows and reopened my code file.
Now it shows the plus minus glyphs again.
I know this is an old post, but I wanted to share a quick solution. if you right click and hover over 'Outlining' and then click 'Collapse to Definition', the widget comes back. Then just press [ctrl] + z to undo and continue where you left off.
With Golang, if the code has some syntactic mistakes that would prevent it from compiling, the language server cannot decide which parts of the code are collapsible, and which not.
Therefore the solution is either switching to the Folding Strategy in VSCode settings to indentation folding, or fixing the syntactic errors.
Simple solution : CTRL + M + O, then CTRL + Z
Thanks to SparrowEatsHawk

Atom: Imitate 'Shift-Enter' keybinding of IntelliJ

In IntelliJ IDEA, one of the more helpful commands I've found is 'Shift-Enter' - it effectively moves the cursor to the end of the line, and starts a new line, thus not affecting the text on the current line.
I'd like to re-create this in Atom, but I can't seem to figure out how one would go about doing so. It doesn't look like you can have multiple editor actions for a given key combination, and I'm not sure if I simply can't find the esoteric editor command I'm looking for.
How can I recreate the behavior of shift-enter in IntelliJ for Atom?
As it so happens, I stumbled across the shortcut: You can use cmd-enter to do the same action. I'm not sure what the underlying command is, but I hope this is helpful to other people!
You can recreate this behaviour by adding this to your keymap:
'atom-workspace atom-text-editor:not([mini])':
'shift-enter': 'editor:newline-below'
Detailed answer;
Freshly open atom editor
Open Keymap option
Copy this and paste this;
'atom-workspace atom-text-editor:not([mini])':
'shift-enter': 'editor:newline-below'
Click save and close the file
Press Shift and enter, Now you'll be able to form a new line below the line you currently in are regardless of the place you are typing in.

Ctrl+T, Ctrl+O, not working right

Neither Ctrl+T nor Ctrl+O in IdeaVim always return to the previous location when jumping to something in any way.
Yes, after something like Ctrl+], you can jump back to where you came from using Ctrl+O. But there are all kinds of different ways to jump around.
I would like a set of shortcut keys that makes it consistently jump back to where I came from, regardless of how it jumped to something. Be it through a Vim action, or an IDE action, Ctrl+O, and Ctrl+I ought to just let me go back and forth. Right now, it seems like a horrible confusing frustrating mess.
Add nmap <C-o> :action Back<CR> to your .ideavimrc file in your home folder.
This back navigation behavior will work better than the default one.
Right now IdeaVim uses its own jump history not integrated with the jump history of IntelliJ. Feel free to vote for VIM-44.