3
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.

VSCodeでNimのFormatter(nimpretty)の自動実行を設定

Posted at

1.VSCodeで「Run On Save」をインストール

image.png

2.VSCodeの設定を開き、「Run On Save」の設定ファイルを開く

image.png

image.png

3.settings.jsonに設定を記録

  • nimのインストールフォルダに「nimpretty.exe」があることを確認。なければ、「koch tools」でインストール。
  • これで、nimファイルを保存すると整形される。
settings.json
  "editor.formatOnSave": true,
  "emeraldwalk.runonsave": {
    "commands": [
      {
        "match": "\\.nim$",
        "cmd": "nimpretty --indent:2 ${file} "
      }
    ]
  }
3
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
3
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?