Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

An Xcode Source Editor Extension that generates a swift switch case statement based on selected enum cases

License

NotificationsYou must be signed in to change notification settings

timaktimak/SwitchCaseGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An Xcode Source Editor Extension that makes a swift switch case statement with selected enum cases

Generate switch example

Why?

Because Xcode does not autocomplete a switch with enum cases.

Installation

  1. Clone or download the repo
  2. OpenSwitchCaseGenerator.xcodeproj
  3. Enable target signing for both the Application and the Source Code Extension using your own developer ID
  4. Select the application target and then Product > Archive
  5. Export the archive as a macOS App
  6. Run the app, then quit (Don't delete the app, put it in a convenient folder)
  7. Go to System Preferences -> Extensions -> Xcode Source Editor and enable the GenerateCases extension
  8. The menu-item should now be available from Xcode's Editor menu

Shortcut

Preferences (⌘ + ,) -> Key Bindings -> Search for "cases"Shortcut example

About

An Xcode Source Editor Extension that generates a swift switch case statement based on selected enum cases

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2026 Movatter.jp