1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ショートカットを使ってサクサクに開発を進めるための小技をまとめていきます。

環境はMacです。

コーディング

任意の位置から改行

Cmd + Enter : カーソルの位置から改行

Cmd + Shift + Enter : カーソルの位置から上に改行

一行コピー/切り取り

選択していない状態で以下のショートカットを押すと、カーソルがある行全体で動作する。

Cmd + c : 一行コピー

Cmd + x : 一行切り取り

ファイル名検索

Cmd + P : ファイル名検索

ターミナルの表示

Cmd + j : ターミナルの表示

検索

選択中の文字列を選択/検索

Cmd + D : 選択中の文字列を選択

これを連打することで、同じ文字列を複数選択していくことができる。

まだ選択中の文字列を全て選択する場合は、Cmd + Shift + Lを押す。(ファイル内の単語の変更にめちゃ便利)

特定の拡張子 or パスを検索

Cmd + Shift + F : 検索バーを表示

files to include: *.go or src/

files to exclude: *_test.go

正規表現

知っているか、VSCodeの検索バーに正規表現を使うことができることを。

Cmd + F : 検索バーを表示

Cmd + Option + R : 正規表現検索

1
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?