Intellij DataGrip - Restore Default Layout Using Keyboard Shortcut - datagrip

So I did something dumb and hid the main menu toolbar in Datagrip (File, Edit, etc.) and now I can't get it back.
I looked at these, but no luck:
Reset IntelliJ UI to Default
I can't locate the specified config directory anywhere. I also tried the F12 shortcut, but that doesn't work.
https://www.jetbrains.com/help/datagrip/configuring-project-and-ide-settings.html
I unhid hidden folders and system files but I still don't see anything here either:
<SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.<PRODUCT><VERSION>
Any idea how to get my main menu back or to reset to the default layout with a keyboard shortcut as I can't locate the config directory?
I'm using Datagrip 2019.2.5.

I sent a note to support and here's what they said:
Please use Help | Find Action, type "Main menu.." and toggle it to
bring it back.
I couldn't access the main menu, but I used the keyboard shortcut for the Action Finder (Ctrl-Shift-A) and then searched for "Main menu".

Related

How to disable keyboard shortcut for Show all files

The Show All Files option in Visual Studio's Solution Explorer keeps toggling on for some reason. What shortcut key does it use and how do I disable it?
For some time now I would randomly find the Show All Files option enabled in solution explorer and I couldn't figure out what was causing it. Thanks to Keyboard shortcut for Show All Files I knew the keys but there was no keyboard shortcut bound to the SolutionExplorer.Folders.ShowAllFiles command. What's actually happening is that Alt+P opens the Project menu then pressing O will toggle show all files.
This was happening often to me because I use Visual Assist's Open File in Solution default shortcut Alt+Shift+O and would sometimes hit P on the way accidentally. To remove this shortcut and behavior you actually need to edit your menu items. Open the Customize menu (Tools->Customize) and remove both entries for Show All Files.

How do I quickly access the interface version of my swift file in Xcode?

Since Swift files don't have a header, it can quickly get cluttered and hard to see just the public and internal methods that represent the interface of that file/class.
Xcode actually generates an interface file that can be found by clicking the Assistant Editor, then selecting the Counterparts type and you'll see the MySwiftFile.swift (Interface) file that you can check out.
Does anyone know an easier way to access this interface file? Maybe with a shortcut? I can't seem to find it using Cmd+Shift+O or other means.
Click the assistant editor (use the shortcut Cmd+Option+Enter to show the editor) and thereafter use Ctrl+Cmd+→ or ← to navigate to your .swift interface file in the assistant window. It's not an immediate short-cut, but possibly better than navigation by clicks/mouse/touchpad.
Open generated interface: Cmd+Ctrl+↑
Go back: Cmd+Ctrl+←
In no way, except for menu selection "Navigate / Jump to Generated Interface"
Xcode cannot assign key binding to "Jump to Generated Interface"
Allow to switch between Swift generated interface and original source via shortcut
It turns out there is a work-around for this.
System Preferences -> Keyboard -> Shortcuts -> App Shortcuts
Hit "+", select Xcode as the application, "Jump to Generated Interface" as the menu title, and then select your keyboard shortcut.

Change the default layout and properties of Powershell in Windows 8.1

I want to change the default layout of Window's Powershell so that it can expand to entire screen.
I tried from properties option.
But when I click the ok button, I am getting below error in Windows 8.1
Unable to modify the shortcut:
Check to make sure it has not been deleted or renamed
Settings get reflected even getting the above error, but it reset to its original settings after reopening of Powershell.
Edit the "Defaults" which is in the menu above "Properties". This will persist your changes even after closing and re-opening the window.
You should be looking at setting up your Powershell profile. The profile file is usually kept in your user location and contains, amongst other things, the settings for your Powershell session.
This should get you started: http://www.howtogeek.com/50236/customizing-your-powershell-profile/
And there's plenty of reading here on SO if you search for 'Powershell Profile'.

Xcode: Keyboard shortcuts for navigating changes in the commit view?

When committing files to an SCM in Xcode it brings up its Version Editor with a Comparison View (showing the diffs for each file). If you click in the gutter between files you can quickly navigate between changes using the up & down arrow keys. However, you can't easily move to the next file using the keyboard (as far as I know). It's very tedious to have to use the mouse to click on each file, then click in the gutter, use the keyboard to move between changes and then click on the next file.
Does anyone know of a way to navigate between files in this view using just the keyboard?
I've done some searching & looked through Xcode's Key Bindings preferences but I can't find anything.
It's a bit clunky, but you can press Cmd-Shift-J to go to the current file in the Project navigator, then use the up and down arrows to select different files. From there you can press Cmd-J, Return to put the cursor into the editor view.

Launch default editor in Xcode

I've configured MacVim to be my default editor in Xcode. I can invoke it from Xcode by double clicking the file in the project view. Is there any keyboard shortcut I can configure or invoke to open the file being viewed in the Xcode editor in my default configured editor?
I am using Xcode 4.3. You can assign a shortcut to open the file in an external editor using the menu item File/Open with External Editor. To assign the shortcut you will need to go to System Preferences/Keyboard/Keyboard Shortcuts, choose Applications Shortcuts, click on the plus button, choose Xcode from the drop down menu, write 'Open with External Editor' in the Menu Title field and choose your shortcut.
Try Option-Command-O - if that doesn't work then you may need to go to Key Bindings in Preferences and set it up (I use the BBEdit Compatible key bindings which include this shortcut as standard).
I made a little write up here fwiw:
https://tmsh.github.io/visual-guide-opening-files-externally-xcode/

Resources