# Intellisense on models in Visual studio

## **Option 1**

**Install the full ModelsBuilder** (<https://github.com/zpqrtbnk/Zbu.ModelsBuilder>) nuget package and change the ModelsMode to Dll and then build your models in the Umbraco backoffice. This will generate a Dll that will give you intellisense.

## **Option 2**

**Create a new project in Visual Studio** that will contain your models and make it build into your web project. Change your ModelsMode to AppData and add these two settings to your web.config:

```csharp
<add key="Umbraco.ModelsBuilder.AcceptUnsafeModelsDirectory" value="true" />
<add key="Umbraco.ModelsBuilder.ModelsDirectory" value="~/../Project.Models/Models" />
```

Where the Project.Models is the name of your models project. This will generate your models into this directory and will on build generate a dll with your models.

##

{% hint style="info" %}
For more information on Models in Umbraco you can check out Umbracos documentation at <https://our.umbraco.com/documentation/reference/templating/modelsbuilder>
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.iglootheme.com/extending/intellisense-on-models-in-visual-studio.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
