LoginSignup
1
0

More than 1 year has passed since last update.

BLOCS で エディタ / IDE のサポートを有効にする

Last updated at Posted at 2022-12-31

最近のエディタや各種 IDE においては大体入力をサポートしてくれる機能があり、少ないタイプ数で、あるいは少々うろ覚えでも書き進めることができます。

ところで BLOCS という新しいテンプレートエンジンをリリースしました。こういう時に困るのが入力のサポートを受けられないことです。そこでいくつかのエディタ / IDE で BLOCS のデータ属性を入力する際にサポートを受けれるようにスニペットやライブテンプレートを用意しました。

ちなみに BLOCS はこちらになります

Sublime Text で Snippets を使う

上記リポジトリの snippets/SublimeText/*.sublime-snippet を以下のディレクトリに置く

[Windows]
~\AppData\Sublime Text\Packages\User\

[Mac]
~/Library/Application Support/Sublime Text/Packages/User/

sublimetext.png

Visual Studio Code で Snippets を使う

上記リポジトリの snippets/vscode.code-snippets を以下のディレクトリに置く

[Windows]
~\AppData\Roaming\Code\User\snippets

[Mac]
~/Library/Application Support/Code/User/snippets

vscode.png

PhpStorm で Live template を使う

上記リポジトリの snippets/PhpStorm/BLOCS.xml を以下のディレクトリに置く

[Windows]
~\AppData\Roaming\JetBrains\PhpStorm<version>\templates

[Mac]
~/Library/Application Support/JetBrains/PhpStorm<version>/templates

PhpStorm が起動中の場合は再起動後に使えるようになります。

phpstorm.png

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