# How to Add an aiexclude File

DevFeed: [How to Add an aiexclude File](<https://devfeed.tech/articles/how-to-add-an-aiexclude-file-25096.md>)

Original publisher: [Read original article](<https://dladukedev.com/articles/041_android_studio_ai_ignore/>)

Published: 2024-08-01T00:00:00Z

Content type: tutorial

Language: en

Sources: [Donovan LaDuke - Developer](<https://devfeed.tech/sources/donovan-laduke-developer.md>)

Topics: [Android Studio](<https://devfeed.tech/topics/android-studio.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [android-studio](<https://devfeed.tech/tags/android-studio.md>), [autocomplete](<https://devfeed.tech/tags/autocomplete.md>), [code](<https://devfeed.tech/tags/code.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [privacy](<https://devfeed.tech/tags/privacy.md>)

## AI overview

A tutorial explaining how to use an .aiexclude file in an Android Studio project to prevent selected code files from being sent to Google's Gemini-powered code generation and autocomplete features. It highlights the trade-off between protecting private or proprietary code and retaining AI-assisted productivity features.

## Source excerpt

Avoid Accidentally Sharing Code with AI for training by using an aiexclude file in Android Studio