gimly / vscode-fortran Goto Github PK
View Code? Open in Web Editor NEWAn extension for VS Code which provides support for the Fortran language.
License: MIT License
An extension for VS Code which provides support for the Fortran language.
License: MIT License
Can you please add a setting to deactivate to automatic compiling of .mod
files? This feature is convenient when working on a very small project, but when working with build systems or larger projects the automatic creation of .mod files bloats source code directories.
Adding the option to turn this off would be incredibly useful.
Are you planning on publishing this extension in the open vsx regestry so it can be installed in vscodium as well?
That would be absolutely fantastic.
https://github.com/VSCodium/vscodium/blob/master/DOCS.md#extensions-marketplace
Hi,
The highlighting support for type declaration needs to be improved.
For example,
type A
real :: b
end type A
displays correctly, but
type :: A
real :: b
end type A
doesn't.
Hi, I unable to use the ctrl+/ shortcut command my FORTRAN (.f90) codes. it return error and as below
Unexpected exception while executing command.
Im currently using vscode version 1.0.0, Red Hat Enterprise Linux Workstation release 7.2 (Maipo). Can you reproduce the error at your side? thanks you.
Amirul
Using v0.1.0, comments following a "!" are interpreted as strings if they contain the "'" character:
C Now it's time for the background vectors
C Call FillFB(FB,muB)
CL=0.9D0 ! 90% Confidence level let's go
If=1 ! fmin = 0.
On the third line, the characters "s go" will be colored like a string. String coloration won't stop until another line contains the "'" character.
Subroutine or function symbols that would make it easy to access parts of a file with
ctrl+p @<functionName>
would be very useful. I would happily help in trying to add this - I just do not know where to start!
Using Punchcard mode, Intel Fortran and gfortran support the exclamation mark to put inline comments at the end of a line. I was able to enable this functionality by adding the following pattern in fortran.tmLanguage
:
<dict>
<key>begin</key>
<string>(^[ \t]+)?(?=!-)</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.whitespace.comment.leading.ruby</string>
</dict>
</dict>
<key>end</key>
<string>(?!\G)</string>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>!-</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.fortran</string>
</dict>
</dict>
<key>end</key>
<string>\n</string>
<key>name</key>
<string>comment.line.exclamation.mark.fortran.modern</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>\\\s*\n</string>
</dict>
</array>
</dict>
</array>
</dict>
The pattern is directly taken from modern.tmLanguage
.
Hi : )
As you surely know, VSCode just implemented an auto-indent feature. I tried to create a pull request, but since the old one is still open this gets a bit messy. So, I propose here is a very basic suggestion to append to the file "modern.configuration.json":
"indentationRules": {
"increaseIndentPattern": "^\\s*((module|contains|function|subroutine|begin|else|elsif|do|for|case|select case|type)|(if\\b.*\\bthen))\\b",
"decreaseIndentPattern": "^\\s*(contains|end|else|elseif|endif|case)\\b"
}
Note that unfortunately VSCode does not seem to correct indentation within pasted blocks, so you have to write your own lines to test the feature (after setting editor.autoIndent
to true)
I use Fortran and regexes very scarcely, so my proposition will probably have to be enhanced.
Hello,
Function or subroutine names are not highlighted when called. I am wondering is it possible to highlight the names by modifying the syntax file.
Thank you.
code-debug already has fortran/gdb support, and it may be possible to add that as a dependency to allow specifications of launch configurations and/or other things. At the very least, a recommendation should appear on the description page of this plugin.
There is some difference in syntax highlighting when initializing a variable with an intrinsic data type and a variable with a user-defined data type:
And this applies not only to the word "allocatable", but also, in my opinion, all other words that are in this dictionary (file modern.tmLanguage
)
<dict>
<key>match</key>
<string>\b(?i:(optional|recursive|pointer|allocatable|target|private|public))\b</string>
<key>name</key>
<string>storage.modifier.fortran.modern</string>
</dict>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.