Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
0
Help us understand the problem. What are the problem?

posted at

updated at

VS CodeでFortranフォーマッタを使う方法

  • 512文字
  • 読了目安: 1分20秒

実行環境

  • windows11
  • Anaconda3
  • VS Code

手順

1. Anaconda3fprettify(pythonで作られたgfortranフォーマッタ)をインストール

Terminal
conda install -c programfan fprettify

2. VS Code拡張機能をインストール

https://github.com/pseewald/fprettify

3. 同じくVS Code内で、 ctrl + shift + p → setting.jsonに以下追記
- <UserName>は自分のPCのユーザーネーム。最初は変数展開を試みたけれどうまく動作せず。

setting.json
"modernFortranFormatter.fprettifyPath":"C:\\Users\\<UserName>\\Anaconda3\\Scripts\\fprettify.exe",

補足

・(fprettify使い方詳細): https://github.com/pseewald/fprettify

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
0
Help us understand the problem. What are the problem?