0
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?

More than 3 years have passed since last update.

【Tips】コマンドラインのおすすめキー操作

Posted at

はじめに

黒い画面で爆速コーディングしてたら、かっこいいじゃないですか〜
いちいちマウスに手を差し伸べなくてもよくなるTipsをまとめました!!!

ショートカット

※ | ←カーソルを示す

Ctrl + F (カーソルを右に1文字移動)

a|bc → ab|c

Ctrl + B (カーソルを左に1文字移動)

ab|c → a|bc

Ctrl + D (カーソルの右の1文字を削除)

a|bc → a|c

Ctrl + A (カーソルを先頭に移動)

abc de|f → |abc def

Ctrl + E (カーソルを後尾に移動)

a|bc def → abc def|

Ctrl + K (カーソルより後ろを全削除)

a|bc def → a|

Ctrl + U (カーソルより前を全削除)

abc de|f → |f

Esc F (カーソルを1単語右に移動)

abc| def ghi → abc def| ghi

Esc B (カーソルを1単語右に移動)

abc def |ghi → abc |def ghi

Esc D (カーソルから単語の終わりまで削除)

abc |def ghi → abc | ghi

終わりに

多分、最初はみんな遅い。でも使わないと、ずっと遅い。

0
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
0
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?