0
0

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.

【VSCode】改行にもsnippet使おう

0
Posted at

snippet ファイルへの登録

文章打ってて一番下の行が近づいてくると行を確保したくなってエンターキー押しまくることないですか? 自分はよくあるので snippet にしちゃいました。ちなみに自分は mac ユーザーでホームディレクトリの名前をhomeにしています。あとこの snippet ファイルの名前をglobal.code-snippetsにしています。

/Users/home/Library/Application Support/Code/User/snippets/global.code-snippets
{
"たくさん改行": {
		"prefix": "@takusan",
		"body": "$0\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
	},
}

改行しまくって行を増やした後に現在打っている部分に戻るようにしています。\nは改行の正規表現です。必要に応じて\nの数を増やしてください。意外と結構使ってます。

以上です。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?