Keyboard shortcut for code folding in Xcode 9 - keyboard-shortcuts

Code folding doesn't work with key binding Shift + Alt + Cmd + <- left in Xcode 9.
Is anyone having same problem with Xcode 9?

Updates in Xcode 10:
Xcode 10 has increased support for code folding, including:
A new code folding ribbon showing all of the multi-line foldable blocks of code in the editor
A new style for folded code in the editor that allows you to edit lines with folded code
Support for folding any block of code enclosed in curly braces
Support for folding blocks of code from the folding ribbon, from structured selection, or from the
Menubar ► Editor ► Code Folding ► Fold menu item
Look at this snapshot:
Code folding was disabled in Xcode 9 beta 1, which is working now, in Xcode 9 Beta5 according to beta release note: Resolved in Xcode 9 beta 5 – IDE
Here is how:
Press and hold ⌘ (command) button in keyboard and move/hover mouse cursor on any (start or end) braces. It will automatically highlight, block area.
Keep (hold) ⌘ (command) button in pressed condition and click on highlighted area. It will enable quick menu popover window with Fold option.
Select Fold from menu list. It will fold your code and shows 3 dots, folding/covering entire block.
Now, to again unfold your code block, release ⌘ (command) button and click on 3 dots folding a block.
For easy understanding, look at this snapshot:
It's all keyboard short cuts are also working.
Fold ⌥ ⌘ ← option + command + left arrow
Unfold ⌥ ⌘ → option + command + right arrow
Unfold All ⌥ U option + U
Fold Methods & Functions ⌥ ⌘ ↑ option + command + up arrow
Unfold Methods & Functions ⌥ ⌘ ↓ option + command + down arrow
Fold Comment Blocks ⌃ ⇧ ⌘ ↑ control + shift + command + up
Unfold Comment Blocks ⌃ ⇧ ⌘ ↓ control + shift + command + down
Focus Follows Selection ⌃ ⌥ ⌘ F control + option + command + F
Fold All ⌘ ⌥ ⇧ ← command + option + shift + left
Unfold All ⌘ ⌥ ⇧ → command + option + shift + left
Code folding options from Xcode Menu:
Menubar ► Editor ► Code Folding ► "Here is list of code folding options"
Here is ref snapshot:
Same options from Xcode Short-cut list:
Menubar ► Xcode ► Preferences ► Key Bindings ► "Here is list of code folding short-keys"

Code folding is one a long list of things that isn't implemented in the new editor yet.
UPD:
Now after release of Xcode 9 code folding works now with former shortcut ( Shift + Alt + Cmd + left arrow)
Note: For only folding the scope you are in, press Alt + Cmd + left arrow.

It is the missing code-folding ribbon that is really making things incredibly difficult. I wouldn't have 'upgraded' if I had known.

According to release notes. Code folding is not supported in Xcode 9.0.
The source editor in this beta version of Xcode 9.0 doesn’t support code folding. (29396003).
And as with all beta software, there are lots of open issues that are well documented in beta release notes.

Related

Any JetBrains IDE: How can I map Ctrl + Mouse Wheel to Page Up / Down actions?

Or more generic, how do I map mouse shortcuts (as opposed to keyboard shortcuts)?
(used to this behavior from Eclipse)
I do not see any issues here, at all (at very least for the Ctrl + Mouse Wheel shortcuts).
Screenshots are from PhpStorm 2020.3.2 on Windows 10 x64.
Settings/Preferences | Keymap
Find the desired action (use the search box to filter available actions)
Right click and choose the right option (Add Mouse Shortcut):
Use the desired "mouse shortcut" there (press and hold Ctrl and do Mouse Wheel Up):
Apply and start using it:

Change IntellIJ terminal to require "Shift" when copy/pasting

By default, IntelliJ has Ctrl + C and Ctrl + V set as copy/paste shortcuts. This also applies to the terminal, though.
This is odd since (on Ubuntu at least) almost every other terminal uses Ctrl + Shift + C and Ctrl + Shift + V for copy/paste shortcuts (and Ctrl + C sends SIGINT).
Changing the copy/paste shortcut in IntelliJ's settings changes the shortcut everywhere, but I don't want it to apply to the editor (just the terminal). This behavior is even mentioned in IntelliJ's terminal help page; https://www.jetbrains.com/help/idea/terminal-emulator.html
The embedded terminal emulator also inherits the following IDE settings:
On the Keymap page, you can configure the copy Ctrl + C and paste Ctrl + V shortcuts.
Is there some hidden setting I'm not seeing somewhere to change the copy/paste behavior of just the terminal in IntelliJ?
It's a known issue with no workarounds available at the moment:
IDEA-230084 In Idea's terminal on Linux, shortcuts Ctrl-C and Ctrl-Shift-C are swapped

IntelliJ - What is the keyboard shortcut to toggle the project file tree?

I am on windows.
In intelliJ Ultimate, there is at the top right corner of the window a horizontal tab labeled "1.Project". Pressing shift + esc will hide the file tree. However, pressing the same key combination does not unhide it.
How can I unhide this? Or create a custom binding that will toggle hide to unhide if it is already hidden?
Clément Baconnier was correct. alt + 1 was the key binding. cmd + 1 on osx.
Alternatively, I learned how to fish using the Action pane ctrl + shift + a that let me search for "Project" which exposed the keyboard shortcut.

IntelliJ - keymap to navigate to function

When I use IntelliJ, and a certain line in the code calls a function, if I put the cursor on the function call, hold the ctrl key and pound the left button in the mouse, IntelliJ brings me to the function that I call.
My question is do I have any option to get the same functionality without touching the mouse?
This navigation shortcut is called Go to declaration.
It can be used by either pressing Ctrl + Mouse Click or Ctrl + B
Additionally, there is also a Go to implementation shortcut:
Ctrl + Shift + Mouse Click or Ctrl + Shift + B

How to combine keyboard and mouse events to create a key mapping in IntelliJ IDEA?

I want to add my own key mappings as combinations of keyboard and mouse events. Examples:
Ctrl + left click
Ctrl + left double click
Ctrl + mouse over
Alt + mouse over
How can I achieve this?
Attempts:
I went to Settings... > Appearance & Behavior > Keymap , but there are only 3 options:
Add Keyboard Shortcut
I can press some keys, but IntelliJ doesn't recognize the mouse events here
Add Mouse Shortcut
It works only for click / double click, keyboard is ignored
Add Abbreviation
I observed that some existing mappings already have such a combination where "left click" appears as "Button1 Click", but I don't know how to insert this text there because there is no Paste option and Ctrl + V is recognized as a key mapping, not as a command. I also tried to drag&drop some text, but it didn't work.
Details:
IDE: IntelliJ IDEA 14.0.1
O.S.: Windows 7
You need to enter a mouse shortcut, and simply use the modifier key when you click the message: "Click here to enter mouse shortcut". The mouse button plus modifier should show up under the Shortcut Preview section of the dialog.