LoginSignup
1
2

More than 3 years have passed since last update.

【Xcode】ジャンプバーにアノテーションを追加するには

Posted at

この記事は何

ソースエディタでは、コードに アノテーション(注釈)を付けることができます。
アノテーションには以下の種類があります。
- Todo
- バグ修正リマインダ
- セクション見出し
- セパレータ

アノテーションはジャンプバーのシンボルポップアップメニューに追加されます。

スクリーンショット 2019-08-04 0.05.52.png

環境

macOS Mojave
Xcode11 beta

書き方

to-do アイテムを追加する

Insert a comment with the prefix TODO:.

Todo
// TODO: [your to-do item]

bug fix リマインダを追加する

Insert a comment with the prefix FIXME:.

// FIXME: [your bug fix reminder].

heading を追加する

MARK: プレフィックスを使うと、いわゆる 見出し を表示できます。
ポップアップでは太字になります。

heading
// MARK: [your section heading].

セパレータを追加する

アノテーションの上部に分割線を表示します。
アノテーションコメントに - をつけて、開始します。

separator_on_above
// MARK: - [your content].

アノテーションの下部に分割線を表示します。
アノテーションコメントの最後に - をつけます。

separator_on_below
// MARK: [your content] -.
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2