The most part of the LaTEX IDE (I use texStudio) allow to use !TEX codes to change the behavior of the compilation. E.g.:
%%!TEX root = main.tex
Adding this in the beginning of each file include at main.tex by \include{*} directive will make the IDE compile always by main.tex, even if you try to compile by a included file.
I know that have more resource than this. Someone have the full list of !TEXcomands?