Working with long code or code with many lines

hello i work with c++ and mql language but in as much as i like chat gpt and gpt3 i find it difficult to use it with long code because for example if i nee it to explain or a add comments to long code it fails totally my question is how do we get this to work with full code or code with many lines?