nishimura.clubnishimura.club

【VSCode】CSSのHexを大文字に変換する方法

作成日
2022-10-21
更新日
2022-10-21

1.正規表現で検索する

cmd + shift + fで検索ウィンドウを開き、.*をクリックし、#(?:[0-9a-fA-F]{3}){1,2}で正規表現検索を実行します。

2.対象の文字列を選択する

検索結果ウィンドウで、cmd + aし、cmd + shift + lで対象の文字列を選択します。

3.コマンドパレットを開く

cmd + shift + pでコマンドパレットを開きます。

4.大文字に変換する

コマンドパレット上でupperorlowerをタイプし、実行します。

Hex Upper

参考

英語

Since \U$0 did not work well, we looked for alternatives.

  1. Search by regular expression

Open a search window with cmd + shift + f, click .*, and execute a regular expression search with #(?:[0-9a-fA-F]{3}){1,2}.

  1. Select the target string

In the search results window, use cmd + a to select all and cmd + shift + l to select the target string.

  1. Open the command palette

Open the command palette with the cmd + shift + p.

  1. Convert to upper case

Type upperor lower on the command palette and execute.

Related

Tags

VSCode
Color

Share

Table of Contents