CodeRush Keyboard Navigation - coderush

Trying to use CodeRush, but can't find how I can choose context menu item using Alt + <Symbol>.
Is there a way to choose popup menu Ctrl + ` item not only by up and down arrows?
For example: Visual Studio context menu has underscored symbols almost for each item it has,
and I can open VS context menu by keyboard (special key is next to the right Alt), then I
can press R and Refactor menu will be opened, or press O and Organize usings menu will be opened, but there is no any underscored symbols in CodeRush popup menu Ctrl + `.

Visual Studio has 6 refactorings.
In my current version of CodeRush there are:
106 CodeProviders (blue items)
209 Refactorings (red items)
[ Note: CodeRush will show you only those that apply given your current context, which is why you typically see no more that 8 items.]
It would therefore not be practical to assign shortcuts to all 315 of these items for use within the popup menu.
However...
The order of the items in this menu changes over time with frequent use. CodeRush is performing statistical analysis of the contexts in which you choose to use each of these. Over time you should find that the item you wish to use is rarely more than 2 items from the top of the list, and is often the first one.
Also you can create your own shortcuts via the options screen.
DevExpress[\CodeRush]\Options (Ctrl+Shift+Alt+O)
IDE\Shortcuts
More details here
You can attach a shortcut directly to a specific refactoring by specifying 'Refactor' in the shortcut's command box and by providing the name of the refactoring in the parameters box.
Note: The above also works for Code Providers (the blue items).
Feel free to ask for clarification of any of these points, or email me if you prefer: roryb#devexpress.com

Related

Spyder - Editor panel shown twice after unknown shortcut

I entered some shortcut in Spyder from the WinPython\WPy64-3950 collection.
I think "Ctrl+Shift+..."
Now there's a second editor open, that I can't get rid off so far..
It's not exactly mirroring the first one. I guess it is usually used
to keep a good overview over your code, especially if the code is longer.
I want to close this second editor panel. None of the following shortcuts seem to help:
http://e-callisto.org/cospar2018/SpyderKeyboardShortcutsEditor.pdf
Any ideas?
To close an Editor panel you can go to the options menu of the panel and there you should find the action Close this panel. The shortcut for the action is Alt + Shift + W:

Issue with Delphi Menu

I am Using RAD Studio 2010 and I have problem in Menu text
There are Z and Y texts in my menu and I want to remove it
This will happen when I use Non English text
This is because of TMainMenu.AutoHotkeys. By default, the value of this property is maAutomatic, which means that the menu will automatically choose accelerator keys for your menu items.
For instance, in a typical English application, you might get a menu like this:
Notice the underlined characters. These are used to access the menu using the keyboard. For instance, to open the File menu, I can press Alt+F. And once the File menu is open, I can press the key corresponding to the underlined character in the caption of the menu item I wish to invoke.
For keyboard users like myself, such accelerators are extremely important. I use them all the time. I could use the mouse instead, but that would slow me down tremendously. (For instance, in the application in the screenshot, I am very used to press Alt+E, O to open the Sort Lines dialog box. That takes about 0.2 seconds. If I had to use the mouse, it would take much longer!)
Now, in your case, there aren't any Latin letters to underline, so instead the RTL adds these parentheses (with the Latin letter being the accelerator), so you still can access the menus using the keyboard.
I have very little experience with non-Latin-based versions of Windows, but I do believe menus like these are standard. If I were a Chinese or Arabic user (for instance), I think I would refuse to use an application without these. If I cannot access GUI menus and controls with the keyboard, I get really annoyed.
Still, if you insist, you can set AutoHotkeys to maManual.

Keybpard shortcut in Spyder to temporarily make a single pane the only pane

If I have multiple panes in the Matlab's IDE, Shift-Ctrl-M causes the one with the focus to become the only visibe pane, taking up the entire IDE window. Pressing Shift-Ctrl-M again brings back all the other panes that were present, and the pane with the focus becomes just one pane among many again.
Is there such a shortcut key in the Spyder IDE?
There is a GUI button to do this, but I wonder if there is also a shortcut key.
(Spyder maintainer here) The shortcut for that in Spyder is Ctrl+Shift+Alt+M
Note: You can browse and modify all our available shortcuts by going to the menu
Tools > Preferences > Keyboard shortcuts

Can I set the Utilities panel in Xcode 4 to open by default on all new projects?

I'm currently learning iOS development from scratch, and as such, I'm making lots of new projects. Every time I do so, I have to resize the Xcode window (I don't want it maximised, but I don't want it as tiny as it makes it), and I also have to pop open the Utilies and Debug areas, as well as dragging the Objects library up to make it larger. Can I set some defaults in Xcode to do this for every new project?
No, Xcode doesn't include all these options, but you can get part way there. You can setup a behavior that shows or hides the parts of an Xcode window such as the utilities, the toolbar, the debugger, etc. Then it's one menu selection or key command to show the parts, and a little dragging to resize things.
To make a behavior select Behaviors>Edit Behaviors... from the "Xcode" menu in Xcode. Create a new behavior by clicking the "+" symbol near the lower left corner. Give your behavior a name and optionally a key command. Set the options in the behavior to show or hide the parts you want shown or hidden, and maybe even take some of the other available actions.
To run the behavior just select it from the "Behaviors" submenu of the "Xcode" menu, or press the appropriate key command combination.

Editor to select text that is inside a rectangle

Often I find myself with some text where I want to exclude a certain part of the text, say the first three characters of 40 lines. The fastest way I could think of to do this would be to draw a rectangle and copy the text. I am mostly using Windows, but I am sure grep or something similar could do this with a tiny bit of code. My best way of doing this is to open Command Prompt. Then run "Edit" (yes the good old one). Then paste the text in there (this actually takes a significant amount of time). Then I am able to select the rectangle I am after.
Is there any other editors that support this feature? I am familiar with Notepad++.
You can select a rectangular area to cut/copy in Visual Studio be pressing the Alt key prior to making your selection with the mouse or (Shift +) cursor keys. See How to: Select and Change Text.
The Zeus editor can do keyboard driven column cut/copy and paste.
Also the default Zeus mouse marking is in column mode.
If you use Vim, Ctrl + V will let you select a rectangular block of text.
The documentation says Ctrl + Q will let you do a rectangular select in mswin compatibility.
Emacs supports kill-rectangle (bound to C-x r k by default) and yank-rectagle (C-x r y) to achieve this. Also of possible interest is delete-extract-rectangle (no default binding, and intended for programming use).
You use it by navigating to one corner of the interesting area, hitting C-<space> to set the mark, navigating to the opposite corner, and invoking the desired function.
UltraEdit has a column mode (menu Column/Column Mode, keyboard
shortcut Alt + C). This makes it possible to make block selections, delete, insert column-wise, etc. using only the keyboard (the mouse works too).
For your example: make a zero width selection at column position 1 for the 40 lines and press Delete three times. Or simply make the 3 x 40 block select and press Delete.
You can do this with NEdit (which is available for Windows). Hold down Ctrl and drag the mouse (left-click) to select rectangles.
In Linux, you could also just use cut:
cut -b4- file
It will remove the first three characters from every line and print the result to standard output.
jEdit supports vertical selections (keyboard shortcut is Alt + \). It can also do multiple, non-continuous selections (keyboard shortcut is Ctrl + \). And when you type it affects all selections, so you can edit multiple lines at the same time, or the same line in more than place simultaneously. Or both.
Vertical pasting is also supported. This is a feature I use all the time. It makes editing columns a breeze.
If you have too many lines to select easily, then jEdit's Find And Replace is as good as it gets.
jEdit is a Java application, and so uses more system resources than most editors. But on the other hand it works on most systems, and it has loads of plug-ins to make editing text more efficient.
This can be done using JGSoft's Editpad which has a freeware lite version that is not crippled.
In IntelliJ, go to Edit and then click on Column Selection Mode. Or use the ALT+SHIFT+INSERT shortcut.

Resources