IntelliJ typo suggestions with a single click - user-interface

Most UI when mouse control click will put the typo correction suggestions on the immediate menu. In IntellyJ you have to click two more times to get there. Alt + enter, gets you there with only one more step, but itself it is expensive to use as a shortcut (especially combined with following mouse operation).
Is it possible to configure IntellyJ to move the typo suggestions on the top, for the context menu for word with a spelling error?
Or alternatively, can I create a shortcut that directly pops the box with suggestions?

Related

Why cant I import on R studio?

I'm new to R. I tired importing dataset on R studio but the full page is not showing. I cant click on import. I tried installing other versions but its still not working.
Adetumi, try this hack to be able to move a window beyond the scope of the display boundary.
Notes:
The "Import Dataset" popup is still part of the RStudio IDE window, so the operation will move all of them together.
Because of #1, when we move it up in order to see the Import window, the upper-left corner of RStudio will become hidden, so knowing how many keys to press to initiate Move is important (the second time, you'll be doing it blind).
This is applicable to almost any windows application, not just RStudio.
Steps to move:
Press Alt-Space, you'll get a Windows Application Menu popup on the upper-left corner of the application.
Either (but not both):
Press M (for Move); or
Go Down twice, notice that Move is now highlighted. Press Enter.
In my windows, the mouse icon changes to a four-way icon, yours may be the same but almost certainly different from the normal arrow. At this point, use the four arrow keys to move the RStudio IDE and its Import Dataset window up until you can see the Import button.
When that is done, you will likely be unable to see the title bar of the application in order to move it (if mouse-moving is your normal thing). In this case, you can do the same thing, though this time you are doing it blind: one of Alt-Space M or Alt-Space Down Down Enter, then arrows to move the window.
I'm comfortable enough with keyboard shortcuts like this one, but there are other alternatives such as https://superuser.com/a/187442. (I often use Alt-Space N instead of M to minimize windows without the mouse. But then again, I'm very much a keyboard person, the mouse is rarely used while "working" on my code.)
Maybe I will not respond directly to your question but I can help you import the data another way round.
Open Notepad, paste your data there, save it as a .csv file and the in R use read.csv() function. It takes as an argument a string with full path to the file.

Visual Studio 2013 - Replace All Button gone (not just off screen)

I am unable to perform multi-file text search and replace (in Visual Studio).
In the past, when I opened the "Replace in Files" dialog, there were 4 buttons in the lower right. One of the bottom two buttons allowed me to "Replace All".
The two lower buttons (including "Replace All") are no longer present.
I believe this occurred after I changed some Windows settings so that I could use menus without the Magnifier.
It is not just a matter of the buttons being off-screen because the window is too large (although it is too large - they would be off-screen, if they were present).
I can drag the window and see the bottom, even though the top is then off-screen (I use AltWindowDrag, allowing me to hold the ALT key, and drag by any part of the window, not just the title bar).
The two lower buttons are not present. I'm unable to resize the window - when I try, nothing happens, or the window repositions so that I can see the title bar, but can no longer see the bottom.
The two buttons that are still present (Find Next and Replace) don't have keyboard shortcuts, so I presume that Replace All doesn't either. Nor can I select either of those two buttons using Tab, so probably can't select an "invisible" "Replace All" button that way.
Any help appreciated.
You can use Find and Replace by pressing Ctrl+H and to Replace All just use Alt+A.

How to more easily "update all frames" in autolayout in Xcode7?

The "Update Frames" calls are often grayed-out in Xcode
the only way I know to have it update frames to match your constraints, is, tediously select your highest-level view and than (sometimes) you can fish in the menu bar for "Selected Views"->"Update Frames". Further, "All Views"->"Update Frames" would appear to often simply not work or work in a way I can't understand.
Surely there's just a keystroke or button which updates all frames straight away to match any newly-entered constraints (such as those made using control-drag).
Note .. for 2016 you can use this very handy button, which at least brings up the same sub-menu as you can find by searching in the menu bar menu.
However it would seem (see my comments w/ ZaBlanc below) that there is perhaps actually an Xcode bug, and you CAN NOT assign a keystroke to the "All Views" items. (The ones you usually use.)
Even worse .. in Xcode 8 ...
they seem to have removed the 'update frames' option ... WTH
It's easy. Go to Preferences -> Key Bindings. Type "Update Frames" on the top. You'll see two appear. You'll want the bottom one (it will be the one without a keyboard shortcut assigned.)
Assign it to ⌘= or anything else you like.
Life changed.
Just for anyone reading, with Xcode 8.3. The popup menu command no longer exists. The menu bar command Editor -> Update Frames does work. However there's a bug, the default key binding on that does not work. If you add a custom key combo, that custom key combo does work.
AFAIK, there is no keystroke for update all frames, but here's a key tip:
If you have a misplaced views, press the yellow arrow in the document outline (the views tree to the left of canvas), press yellow triangle on any view in the list, then select update frames and check Apply to all views in container - this will update all misplaced views in the selected view controller
Additionally, you probably already know:
You can add a new constraint with Add New Constraints button in canvas bottom right and select "Update frames" option.
You can select any view by mouse-click and holding Option+Shift keys - this will show you the list of all the views, that intersects with mouse pointer. After that you can select update frames menu item on a selected misplaced view.
The same as you, I thought that it's very annoying to fix the misplaced views manually by selecting them and choose that boring option from Xcode menu. After trying hard to shorten the time to fix the layout issues, I had to admit that there is no way to call the function "Update Frames" from command line. So I ended up doing this way:
Open Xcode warnings & error inspector window
Filter all layout warnings by using the keyword "frame for"
Click on warnings to quickly locate to the misplaced views then press Command + Option + =
That's the fastest way I know. Please try it out!
You could also find more details HERE

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

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