I have a main tex file:
\documentclass{article}
\begin{document}
\input{chapter2.tex}
this is main document.
\end{document}
and a subsidiery file included in the main file:
This is a chapter in another file.
An IDE like texmaker can compile only the main file and is not smart enough to have a multiple file project. Is there a way to make all subsidiary files compilable?
This will make it easier to fix them.

standalonepackage and class? It does something like that. – Oct 25 '15 at 06:46subfilespackage: http://tex.stackexchange.com/a/261180/74960 – MarcoG Oct 25 '15 at 08:37\includeand\includeonly{chapter2}? – David Carlisle Oct 25 '15 at 09:18