5
2

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.

Visual Studio Codeでコメント文を削除してかつ空白行を詰める

Last updated at Posted at 2019-07-26

RailsでGemfileのコメントを消したい時など用の自分用メモ

  1. VSCodeにRemove Commentsをインストール

  2. Command + Pでコマンドパレットを開き> Remove All Commentsを選択

  3. 正規表現で^\nを置換文字列を空白にして置換

ただし、
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
のような記述があった場合、#の後の部分もコメントと認識して削除されてしまうので、使うのはかなり限定的な場面のみになる。

もっと良い方法絶対いっぱいある。

5
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
5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?