# Feedback on fypp support for Modern Fortran in VS Code

**URL:** <https://fortran-lang.discourse.group/t/feedback-on-fypp-support-for-modern-fortran-in-vs-code/4110>\
**Category:** Help\
**Created:** [August 2, 2022, 12:13pm UTC](https://fortran-lang.discourse.group/t/feedback-on-fypp-support-for-modern-fortran-in-vs-code/4110 "2022-08-02T12:13:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gnikit](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/gnikit/32/1213_2.png) [@gnikit](https://fortran-lang.discourse.group/u/gnikit)\
**Post date:** [August 2, 2022, 12:13pm UTC](https://fortran-lang.discourse.group/t/feedback-on-fypp-support-for-modern-fortran-in-vs-code/4110/1 "2022-08-02T12:13:47Z")

</div>

I am in the process of adding support for the [`fypp`](https://fypp.readthedocs.io/en/stable/index.html) preprocessor in VS Code’s Modern Fortran, see [Adds `fypp` linting support by gnikit · Pull Request #591 · fortran-lang/vscode-fortran-support · GitHub](https://github.com/fortran-lang/vscode-fortran-support/pull/591).

For `gfortran` it should already be complete and (fully?) functional.  
What I would like to ask is for community members that heavily use `fypp` to cast a reviewers eye and maybe comment on some of the pending issues or review comments I have left in the PR.

* * *

In case you want to test it for yourselves you can find the instructions in [CONTRIBUTING.md](https://github.com/fortran-lang/vscode-fortran-support/blob/master/CONTRIBUTING.md), but here is also a quick summary:

## Requirements

- [nodejs v16](https://nodejs.org/en/download/)
- [VS Code](https://code.visualstudio.com/download)

## Steps

1. clone and compile

```bash
git clone https://github.com/fortran-lang/vscode-fortran-support.git
cd vscode-fortran-support && git checkout feature/fypp
npm i
npm run watch-dev

```

1. Press `F5` to launch the `[Extension Development Host]` instance of VS Code, that’s where you can test the extension.
2. In the Extension Development Host window, do Open Folder (`Ctrl+K Ctrl+O`) in the `./test/fortran/fypp` directory. Open the `demo.fypp` and do a save to get lint diagnostics

You should be able to see something like this

 ![image](https://global.discourse-cdn.com/free1/uploads/fortran_lang/original/2X/e/e8bf77ee741ac1be72b3da9c18e3e6934be89f2d.png)

You can open any folder you want with in the Extension Development Host but you will have to enable in the `settings.json` of VS Code the `fypp` preprocessor if you want to test it i.e.

```json
  "fortran.linter.fypp.enabled": true,

```
