-
-
Notifications
You must be signed in to change notification settings - Fork 35
Add a FORTRAN formatter #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Formatting source code is a very opinionated thing and each one has his own code style. Also I don't have the time to implement a formatting algorithm. But PR are welcome 👍 |
Full formatting, like in many Visual Studio implementations, is indeed complex and in many cases a matter of personal preference. I actually ment only post indenting of a code that was originally written without indentation or a non consistant indentation. I fixed some of the syntax highlighting privately on my vc code installation and the auto indentation as well. however, I failed to indent the internal case whithin a select case statment more than the select case. |
@yonadav I suggest you read this: https://guides.github.com/activities/forking/ |
@yonadav are you still willing to share your fixes? |
Thanks for the offer but I currently don't have the time to do that. |
Adding this here just to keep it for future reference:
In our case, the number of spaces in each indentation can be set based on VSCode |
Thanks for create this useful extension! |
@han190 This feature here is desirable for everyone, but we are short in developers right now 👎 . Your idea is simpler, probably easier to implement, it could be a nice first step 👍 . Thank you!
|
Guys, there is an alternative/crappy fix if you are really annoyed by the indentation. Go ahead and copy the file from here: |
according to this post auto indent is possible in VS Code It looks very similar to the ATOM version. There is also a language-fortran package availuable for ATOM which has the indention rules already integrated, so they could be copyed from there. |
A decent solution that has worked for me in the past, especially with large projects, is fprettify https://github.com/pseewald/fprettify. Although it focuses mostly on formatting whitespaces. |
Check out https://sourceforge.net/projects/findent/ . That is a very fast fortran indenting program, also converts from fixed format to free format and vice-versa and understands fortran 66 until fortran 2018. |
Adds support for `findent` and `fprettify`. Fixes #29.
Adds support for `findent` and `fprettify`. Fixes #29.
Adds support for `findent` and `fprettify`. Fixes #29.
Adds support for `findent` and `fprettify`. Fixes #29.
Adds support for `findent` and `fprettify`. Fixes #29.
Adds support for `findent` and `fprettify`. Fixes #29.
An amazing implementation of FORTRAN editing.
A FORTRAN formatter would be very helpful enhancement (at least for the free format FORTRAN code file structure, FORTRAN 90 and up) .
Format document and format selected like in the c/c++ extension.
The text was updated successfully, but these errors were encountered: