LoginSignup
9
8

More than 5 years have passed since last update.

コマンドラインからVSCodeで2つのファイルのdiffをとる

Posted at

以下のコマンドで起動できる。

code -d file1 file2

補足1

VSCodeのコマンドパレットからも同様なことができる。
compareと入力すると対応するコマンド一覧が表示される。

補足2

vimも同じオプションでdiffを表示できる。
合わせて覚えておくといいかも

vim -d file1 file2
9
8
1

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
9
8