Skip to content

Converts JS-style comment blocks to Obj-c style comment blocks

Notifications You must be signed in to change notification settings

eonist/CommentStyler

Repository files navigation

CommentStyler

Converts JS-style comment blocks to Obj-c style comment blocks:

img

Example:

/**
 * Comment
 */

 To:

 ///
 /// Comment
 ///
Consolidate parameters:

img

Example:

/**
 * A method that creates circles
 * - Parameter color: the color of the circle
 * - Parameter radius: the radius of the circle
 * - Parameter pivot: the center point of the citcle
 */

 To:

/**
 * A method that creates circles
 * - Parameters:
 *   - color: the color of the circle
 *   - radius: the radius of the circle
 *   - pivot: the center point of the citcle
 */

Instructions:

  1. Select and copy the code you want to format
  2. Click the convert-comment-block button
  3. Paste the code

Dependencies:

Todo:

  • Figure out how to get the keyboard hi-jacking code to work in modern macOS apps ✅
  • Cleanup and refactor
  • Add bulk feature (select folder and convert all .swift files)
  • Add cmd + alt + cmd + 8 command to activate convert call

About

Converts JS-style comment blocks to Obj-c style comment blocks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages