# Visual Studio editor saying 'Macro in Skipped Region'

**URL:** <https://forums.unrealengine.com/t/visual-studio-editor-saying-macro-in-skipped-region/424588>\
**Category:** Pipeline & Plugins\
**Tags:** macro, unreal-engine, Visual-Studio, question, CPP\
**Created:** [May 8, 2018, 6:57am UTC](https://forums.unrealengine.com/t/visual-studio-editor-saying-macro-in-skipped-region/424588 "2018-05-08T06:57:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon37657770](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon37657770](https://forums.unrealengine.com/u/anon37657770)\
**Post date:** [May 8, 2018, 6:57am UTC](https://forums.unrealengine.com/t/visual-studio-editor-saying-macro-in-skipped-region/424588/1 "2018-05-08T06:57:13Z")

</div>

Visual Studio is saying macro in skipped region after a recent update. It didn’t show this message before the update.

![240285-screenshot-12.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/3/5/535a6e27b26909de0bb76315c73a6f4d2094c638.png)

The code compiles fine but how to remove this error message?

---

<div class="post-metadata">

**Author:** ![mcleary](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mcleary/32/924204_2.png) [@mcleary](https://forums.unrealengine.com/u/mcleary)\
**Post date:** [May 12, 2018, 10:27pm UTC](https://forums.unrealengine.com/t/visual-studio-editor-saying-macro-in-skipped-region/424588/2 "2018-05-12T22:27:16Z")

</div>

I was having the same issue. The weird part is that it is hard to find official references to this “Macro in Skipped Region”. There are a lot of people complaining about this, links for reference:

- [Green squiggles and light bulb with “Macro in skipped region” message.](https://developercommunity.visualstudio.com/content/problem/248016/green-squiggles-and-light-bulb-with-macro-in-skipp.html)
- [Generate Visual Studio Project Files does not find new classes](https://answers.unrealengine.com/questions/784707/generate-visual-studio-project-files-does-not-find.html)
- [Deactivate VS warning “Macro in skipped region"](https://gamedev.stackexchange.com/questions/158399/deactivate-vs-warning-macro-in-skipped-region)

The best solution comes from the later where it suggests disabling this warning by disabling IntelliSense as a whole. Unfortunately, I couldn’t find a way to disable only this warning but I can live with it until a fix comes out.

In order to fully disable IntelliSense:

- Tools → Options → Text Editor → C/C++ → Advanced → Disable IntelliSense

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_aa6737ce](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_aa6737ce](https://forums.unrealengine.com/u/anonymous_user_aa6737ce)\
**Post date:** [May 15, 2018, 5:42am UTC](https://forums.unrealengine.com/t/visual-studio-editor-saying-macro-in-skipped-region/424588/3 "2018-05-15T05:42:55Z")

</div>

SO ANNOYING. NEED ANSWERS NOW!

---

<div class="post-metadata">

**Author:** ![Roi\_Danton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Roi\_Danton](https://forums.unrealengine.com/u/Roi_Danton)\
**Post date:** [May 15, 2018, 6:16am UTC](https://forums.unrealengine.com/t/visual-studio-editor-saying-macro-in-skipped-region/424588/4 "2018-05-15T06:16:30Z")

</div>

I recommend to vote on visualcommunity so the VS Devs priorities that. Using hint files or deactivating Intellisense don’t seem viable solutions to me.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_aa6737ce](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_aa6737ce](https://forums.unrealengine.com/u/anonymous_user_aa6737ce)\
**Post date:** [May 15, 2018, 6:43am UTC](https://forums.unrealengine.com/t/visual-studio-editor-saying-macro-in-skipped-region/424588/5 "2018-05-15T06:43:29Z")

</div>

## A Workaround

Bit of a hacky workaround, but try this for now:

1. Add a **cpp.hint** to your root folder

2. Add the missing defines in here, for example, mine is:

3. Restart visual studio and give it a few seconds. This should get rid of your green squiggles.

4. List item

* * *

## Microsoft’s Hint File Docs

> **[Hint Files](https://learn.microsoft.com/en-us/cpp/ide/hint-files?redirectedfrom=MSDN)**
>
> Learn more about: Hint Files

---

<div class="post-metadata">

**Author:** ![BugSwat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BugSwat](https://forums.unrealengine.com/u/BugSwat)\
**Post date:** [May 24, 2018, 1:17pm UTC](https://forums.unrealengine.com/t/visual-studio-editor-saying-macro-in-skipped-region/424588/6 "2018-05-24T13:17:10Z")

</div>

This is a nice workaround. Thank you for sharing.

But: I’d just leave the whole thing alone. I mean, it is not an error, it is an information from the IDE. Keep it in your sights but do NOT change your code because of IntelliSense information.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_aa6737ce](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_aa6737ce](https://forums.unrealengine.com/u/anonymous_user_aa6737ce)\
**Post date:** [May 24, 2018, 6:40pm UTC](https://forums.unrealengine.com/t/visual-studio-editor-saying-macro-in-skipped-region/424588/7 "2018-05-24T18:40:19Z")

</div>

It’s incorrect information from the IDE (as acknowledged by Microsoft). I even added my cpp.hint file to the visual studio installation directory; so it doesn’t even have to live in your project root. It’s simply an editor configuration… and it’s not modifying any code whatsoever.
