"Selects Code Structure" not visible in Xcode Settings > Navigation

Hi,

I'm trying to change the behaviour of Command-click on Code under Xcode > Settings > Navigation to display the Action menu to use features such as Add Column Breakpoint. But unfortunately the option Selects Code Structure is not visible when unfolding for different options, the only choices are Jumps To Definition and Multi Cursor.

I have seen other users having Selects Code Structure instead of Multi Cursor, I really wonder how Multi Cursor got there 😅 .

Is there a way to make Selects Code Structure visible and selectable?

Any help would be appreciated.

I'm running Xcode 15 on macOS Sonoma.

Answered by AmpersandSoftworks in 775920022

I was also struggling with this! I was convinced that I had done something to my Xcode 15 install which caused this option to disappear, but it turns out that this is just a big change that was made in Xcode 15:

The Show Code Actions command has been replaced with Show Quick Actions to quickly access any menu command. By default, Command-clicking a token in the editor now performs Jump to Definition. This can be changed in the Navigation preferences. Control-clicking a token brings up the standard contextual menu that now contains all the commands that were available in the Code Actions. (86179596)

Xcode 15 Release Notes: New Features

Apple wants you to either use the new ⌘+Shift+A keyboard shortcut to access these options, or to just right click and access them there.

Is "Code Structure when scrolling" what you are looking for ?

Effectively, there is something bizarre:

  • if I select Multi cursor, cmd click jumps to definition
  • if I select Jump to definition, it does nothing.

Did you file a bug report ?

Thank you for your reply.

"Code Structure when scrolling" is not what I want to set.

I want to be able to display the same context menu as this one:

I wasn't aware it was an unexpected behaviour. If so I will file a bug report.

I found out that doing a Right-click or Control+click on the symbol brings a context menu almost similar to the Actions Menu.

The UI is different but it offers the same functionalities like the one I wanted to try out, namely Create Column Breakpoint.

Accepted Answer

I was also struggling with this! I was convinced that I had done something to my Xcode 15 install which caused this option to disappear, but it turns out that this is just a big change that was made in Xcode 15:

The Show Code Actions command has been replaced with Show Quick Actions to quickly access any menu command. By default, Command-clicking a token in the editor now performs Jump to Definition. This can be changed in the Navigation preferences. Control-clicking a token brings up the standard contextual menu that now contains all the commands that were available in the Code Actions. (86179596)

Xcode 15 Release Notes: New Features

Apple wants you to either use the new ⌘+Shift+A keyboard shortcut to access these options, or to just right click and access them there.

"Selects Code Structure" not visible in Xcode Settings > Navigation
 
 
Q