In ide.

app.InIDE() → Boolean

Example - Check IDE click to expand contents