- Open directory in Finder with Cmd + Shift + G
/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/
-
Open
IDETextKeyBindingSet.plist
with a text editor. -
Add this in:
/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/
Open IDETextKeyBindingSet.plist
with a text editor.
Add this in:
// Created by Zef Houssney on 1/9/20. | |
// This takes some inspiration from https://gist.github.com/chriseidhof/3c6ea3fb2102052d1898d8ea27fbee07 | |
// but uses a different approach. | |
// Instead of trying to calculate the position of each item and placing them manually using calculated coordinates, | |
// this calculates the amount of space each item wants to take up, then splits the items into rows that should fit | |
// within the available width. | |
// Then, the views are distributed into rows, made up of an HStack for each row inside a VStack. | |
// | |
// This seems non-conventional, but I was having trouble getting the frame of my top-level view to be respected when returning |