Skip to content

Sample project demonstrating use of an Xcode Source Editor Extension to format Swift code

Notifications You must be signed in to change notification settings

zoejessica/marker-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Marker Extension

Sample code to accompany blog post on Xcode extensions: implements an Xcode Source Editor extension to format Swift code.

This extension uses regular expressions to reformat malformed code marks (TODO, FIXME and MARK) to be uppercased with a trailing colon, enabling Xcode to recognize and add them to quick navigation links.

This formatting rule was inspired by one of the many rules provided by the SwiftFormat project. A fuller implementation like SwiftFormat's which also recognizes code marks inside /* */ comments is left as an exercise for the reader 😇.

About

Sample project demonstrating use of an Xcode Source Editor Extension to format Swift code

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages