Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Making use of the integrated C# intellisense

$
0
0

I developing a template-based language based on C#. Like ASP.NET MVC it combines text with C# code using @, @() and @{} constructs. This inline C# code is just propagated to the generated file -- however is there a way to tap in to the default C# intellisense and use it in my template file?

The idea is to match the intellisense from the template file to a matching position in the generated file. An example of such a thing with ASP.NET MVC would be:

@if (Model.IsBold())
{<b>Hello World!</b>
}

Here I would match the dot operator after Model to a position in the generated C# file and utilize the default C# intellisense to show members within the scope matching the position in the generated file. As if I were writing code directly in the generated file.

Is there a way I can reuse the already existing C# intellisense implementation this way? Any suggestions?

Regards,
Thomas



Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>