Getting intellisense to work in Razor files #79
-
Is there a way to get IntelliSense to work in Razor files in Statiq projects? The screenshot below is from the This is the case for me in both VS and Rider. Perhaps there is a trick I am missing? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Yes! You're in luck, there's actually a pretty straight-forward way to let the Razor engine know that you're using a different base page class. Create a |
Beta Was this translation helpful? Give feedback.
Yes! You're in luck, there's actually a pretty straight-forward way to let the Razor engine know that you're using a different base page class. Create a
_ViewImports.cshtml
file at the root of the "input" folder as described here: https://statiq.dev/web/content-and-data/templates/razor - let me know if you have any trouble.