Share more of your code with it. I've found it needs more of the full scope of the code to adequately help you.
Also, it will try to answer a question even if it's illogical. For example, I asked it to help me do something that my server already did automatically, but I didn't know that. So instead of saying "your server does that automatically" it tried to answer the question with code and resulted in all kinds of bugs.
It can't really think outside of the scope of your question right now. Still limited, but still useful.