178
166

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ブロックコメントの工夫

Last updated at Posted at 2012-11-27

/* ~ //*/ の形式で書いておくと、コメントにしたりコメントを外したりが簡単に切り替えられて便利。

コメントにしたいとき。

/*
hogehoge();
fugafuga();
//*/

コメントを外したいとき。

先頭の/*//*にするだけで切り替わる。スラッシュ一文字を消したりつけたりするだけ。

//*
hogehoge();
fugafuga();
//*/
178
166
5

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
178
166

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?