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?

CSSの更新後の自動スクロールをオフにしてコーディングを快適に【VSCode, LiveServer】

Posted at

本記事について

VSCodeと拡張機能「Live Server」をお使いの皆さん、
VSCodeでWebコーディングをしていて、自動更新(ホットリロード)されると勝手にページが勝手にスクロールされてちょっと嫌ですよね?

特にCSS編集中だと嫌です。

そこで、本記事ではVSCode, Live Serverをお使いの方向けに、自動更新後のページスクロールを防ぐ方法を紹介したいと思います。

Mac, Windowsどちらも対応可能です。

設定は簡単

VSCodeを開いて、

1. Ctrl + , (コンマキー)で設定を開きます

(VSCode左下の歯車マーク⚙→設定 かrでも可能です)
設定.png

2. Full Reloadと検索

1番上に出てきた、Live Server > Settings: Full Reloadの項目にチェックを入れてください
Full_Reload.png

3. VSCodeを閉じて再度開くと...

HTMLやCSSを更新しても、勝手にページがスクロールされることはありません!

まとめ

今回は、Webコーディングを快適にする便利な設定を解説しました。
ぜひ、ご活用くださいませ。

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?