- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I recently inherited a medium sized program based on F90. My company currently uses Intel Parallel Studio XE 2011. One thing that makes it difficult to work on the code is that the prior developer's formatting is incredibly non-standard. Indentations are random and lead to wrong interpretations.
So my question...would Intel Parallel Studio XE 2011, newer Intel studios, or any other software out there be able to format the code for better experience?
I am only looking to fix indentations and NOT the logic, var names, etc. Essentially the same function on an MS Visual Studio C# project and menu Edit>Advanced>Format Document.
Thanks
コピーされたリンク
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Download VS 2022.
you may have to install Intel Fortran
Open document
Edit -> advanced -> Format document works a treat for f90, can need some fixing for for files.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I think Format Document will work on the version you have (though it is ancient.)
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Already tried. The Format option is not there. At least in the VS that is supported by Intel Parallel Studio XE 2011.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Im tryin that tool but extremely difficult to set up Python. Maybe it was because im using PyCharm.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
@sindizzy wrote:
"Im tryin that tool but extremely difficult to set up Python. Maybe it was because im using PyCharm."
What? Findent does not use Python. You download and extract a zip file, and you have findent.exe ready to work on your Fortran source files. In a command window, if you type
findent < old.f > new.f
the program will read the source lines in file old.f and output a polished version to file new.f.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I see. I think we were talking about two different findents. The one I was trying to use is part of an extension to VS Code and it is written in Python: https://github.com/MFTabriz/findent
I will try the one on SourceForge and see what that produces. Thanks for the heads up.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
You could always upgrade to the free Visual Studio 2022 and Intel Fortran Compiler (from the oneAPI HPC Toolkit - also free.) There's not likely a good reason to be stuck on a ten-year-old compiler.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I will try that. I didnt know about the oneAPI HPC Toolkit so will give that a shot.
Thanks.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I checked out Intel oneAPI and that may be our path forward. Thanks so much for the tip.
I did try the for matter within VS and it was good in some areas but failed miserable in others. I think I will try the findent on my source files and then use oneAPI for compiles.
Again many thanks