Arrow key to move cursor down one line in text editor stopped working - visual-studio

I can no longer use just the down arrow keyboard key to move the cursor down one line in the text editor. Using arrow keys to move up, left, and right still works fine. How could this have broken, and how can I fix this?
I have closed and re-opened VS, but that did not fix the issue.
Right before this started happening, I was remapping some of the keyboard shortcuts under Options -> Keyboard. I deleted a bunch of unused shortcuts, added some new ones, and changed some. Is it possible that there was a shortcut just for moving the cursor around that I inadvertently deleted? I looked, but I don't see any shortcuts that might fit that description.

Normally, Edit.LineDown command should have Down Arrow assigned to it in the Text Editor scope:
You may need to reassign the shortcut if it is broken.

Related

Stop R studio from jumping to the next function

There's this one issue with Rstudio that has been bothering me for a long while now and I cannot find a solution.
I like to use a lot of shortcuts and move around the editor with arrow keys and also scroll the editor using Ctrl + arrow shorts. The issue is that if the script contains a user defined function and I press Ctrl+Up/Down the cursor jumps to that function even if it's nowhere near. Like sometimes hundreds of lines. EXTREMELY ANNOYING!!! And I have looked through shortcuts and this is the only thing I have found:
There are no more different Ctrl+Up/Down shorts. So it doesn't seem to be a multi mapping issue. Also if I change this mapping to something else the annoying jumping still continues. I just want it to stop! Can anybody help? Doesn't it annoy anyone else?
The behaviour of RStudio where Ctrl+Up and Ctrl+Down step the cursor between function definitions is not configurable and cannot be changed. Oddly, the same pair of keystrokes were chosen to move the scroll bar.
Your only option to avoid the conflict is to redefine the scroll up and scroll down keystrokes to something else (e.g. F8/F9 or something) so that they not longer conflict with this hardcoded option. You can then control the scroll bar using the keystrokes you have chosen without it conflicting with the behaviour where it steps between functions.
If you find you have accidentally navigated to a function you didn't want using Ctrl+Down, you can return the cursor to where it was using the "Source Navigate Back" keystroke which defaults to Ctrl+F9.
IMO this is clearly a bug in RStudio. I would report it to them and hope that it is fixed for a future version.

Visual Studio: Possible to change the keyboard shortcut in for switching the overload on the Parameter Info popup?

In Visual Studio 2013, is it possible to change the keyboard shortcut for switching the overload on the Parameter Info popup to something other than up and down arrows?
For example, when you type:
System.Text.RegularExpressions.Regex.Matches(
A little box pops up telling you about overload 1 of 3 for that method. Pressing the down arrow will go to 2 of 3 etc. As a point of fact, the up and down arrows already serve the nifty function of moving the cursor. When that box is visible, you have to hit escape to get the up and down arrows back to their normal behavior.
My question is this, can you change the Parameter Info box up + down keyboard shortcuts to be something else, like control up or down?
I did notice that the left and right arrow keys might be a bit better than the escape key, but I'd still prefer to remap the up and down behavior so they can make the box go away.
I realized how much time (and hand movement) I spend hitting the escape and figured it'd be worth asking. I do not think this falls under the category of the keyboard shortcuts that you can remap from the Options screen.
Many thanks!

Keyboard shortcut to rename a variable?

In Visual Studio, when you change the name of a variable, a small red square appears underneath it and when you hover over it, a bigger yellow box appears, and when you click on that an option appears to automatically rename all instances of that variable to the new name. Is there a keyboard shortcut for this? It would be much faster than trying to hover over the tiny red box for half an hour... (if it matters I'm using the C# code editor)
EDIT: I am aware of CTRL+. but is there one where you don't have to press enter afterwards? :-)
F2 displays the Rename dialog box, which allows renaming all references for an identifier.
You can rename variables of this easy ways: Right click -> Rename or Ctrl+R-> Ctrl+R

Moving caret back/forward to previous/next editing position within a document in Xcode 4?

In Xcode 3, I could go back to previous editing point within a document by pressing Command+Control+[Left|Right]. (I'm confusing it was Control or Option... However) In Xcode 4, the key combination is assigned to other feature. Code folding..? What did this key change into?
The shortcut in XCode 4 for "Go forward/backward" is "Control" + "Command" + "Arrow"
This is super annoying for me. When I tried to change the shortcut in the Shortcut Editor back to the Xcode 3 way, Xcode crashes. Fun.
Another option for switching to Previous/Next editing position (Go Back/Go Forward) is using two finger swipe (left for Go Back, right for Go Forward). I realize that this is not a keyboard shortcut but if you are using a Trackpad, it is much faster than trying to click on the buttons.
Note: The pointer does need to be in the editor for swiping to work.
Not 100% sure what you mean by "previous editing point", but Command+Option+Left|Right is code folding. I use Option+Left|Right and Control+Left|Right to move back and forth within the code to get to particular points.
A list of Xcode keyboard shortcuts can be found here

Textmate tab and de-tab selected block

Recently switched to Textmate on Mac for coding. On PC when ever I want to tab in or out a block of code I just highlight and press tab or shift+tab to move it in our out. It's very useful when you are adding an extra loop or conditional statement to a block of code to keep everything tidy and neatly indented.
On Textmate however when I try this it just replaces my selected text with a tab. So is there a way to do tab and de-tab lines of code in textmate?
Indent: Alt+Tab
Un-Indent: Shift+Alt+Tab
the hotkey is command-left bracket to move left and command-right bracket to move right
(the buttons next to 'p')
heres a link to more hotkeys and such
http://projects.serenity.de/textmate/tutorials/basics/
You can use Shift+Tab to decrease indent; You just need to make and assign a macro. You can reuse this technique to accomplish a great many things.
Enter some text, and intend them, this is mostly for feedback.
Click the Record Macro Button
Use ⇧+⌥+⇥ (aka; Shift + Option + Tab) to decrease the indentation.
Click the record button to stop recording the macro.
Use the Edit menu or ⌃+⌘+M to save your macro;
Saving will prompt you to create a new bundle*, or add your macro to an existing bundle.
Add a Key Equivalent by clicking in the field and pressing ⇧+⇥
Your bundle-macro should look like the one below, simply Save and you're done! TextMate will now decrease indent on ⇧+⇥
*: (as noted by u/PatrickT) Sadly the create new bundle functionality has not yet been implemented, and you must choose to add to an existing bundle. You can still create a bundle via Bundles -> Edit Bundles then Command + N.
As an alternative, you can change the keybindings, see Link
Here is what I did:
Install Link
Go to File -> Open -> User Key Bindings, this will create/edit ~/Libary/KeyBindings/DefaultKeyBinding.dict
Add a binding, for the action enter shiftRight: (indent) manually (this is a TextMate specific action and not in the pre-populated actions list)
Choose a shortcut, I used cmd+alt+right
Do the same for the action shiftLeft: (un-indent, I used cmd+alt+left)
Save and then restart TextMate
I used a shortcut with arrow keys as my right hand is already on the arrow keys when I am selecting multiple lines, so this is a good fit.
The reason why I did it was because I have a german keyboard and alt+tab/alt+shift+tab don't work for me since I am using Witch for app-switching using these exact shortcuts.
EDIT: cmd+alt+left/right don't work when you have multiple tabs open, as they are used for navigate to next or previous tab in TextMate... seems this cannot be changed or overridden (I tried Setting Shortcut Keys in Textmate). Looking for an alternative shortcut now.

Resources