top

简体中文



Xcode Tips

Xcode Tips

Archive of the collection of Xcode tips I shared on x


✦ My macOS/iOS application ✦

RightMenu Master Quick RSS Quick RSS Web Serve Copybook Generator DevTutor for SwiftUI RegexMate Time Passage Iconize Folder Textsound Saver Create Custom Symbols DevHub Resume Revise Palette Genius Symbol Scribe




💡 Switch Edit Window

Use the shortcut + J along with the arrow keys to switch between edit windows.

Switch Edit Window

💡 Quick Code Navigation

Hover over the minimap and hold to display an index of all method and variable names, allowing quick navigation to them.

Quick Code Navigation

💡 Code Snippet Generation Function

Select a piece of view code with your mouse, right-click to open the menu, and choose Refactor -> Extract to Method to generate a function and edit the function name.

Code Snippet Generation Function

💡 Format to Multiple Lines

Select a line of code and press Control + m to format it as multiline code.

Format to Multiple Lines

💡 Move a line or multiple lines of code up/down

Move selected multiple lines of code or the line where the cursor is located. Move code up: Cmd + Option + [, Move code down: Cmd + Option + ]

Move a line or multiple lines of code