# Undefined Features In Development

To enable a more streamlined developer experience, we can treat undefined features as Always On, to avoid having to go into Toggly and define the feature.&#x20;

Simply add `UndefinedEnabledOnDevelopment` to `AddTogglyWeb`.

```csharp
builder.Services.AddTogglyWeb(options =>
{
    options.AppKey = builder.Configuration["Toggly:AppKey"]!;
    options.Environment = builder.Configuration["Toggly:Environment"]!;
    options.UndefinedEnabledOnDevelopment = true;
});
```

{% hint style="success" %}
Don't worry, we auto-detect new flags being checked, and show you any undefined ones on the Feature Definitions page at the bottom.
{% endhint %}

{% hint style="info" %}
This works with app.Environment.IsDevelopment() to only affect development. For all other environments, you'll still need to define the feature
{% 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.toggly.io/feature-flags/feature-flags-in-c-.net/undefined-features-in-development.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.
