HG uses C#, Python, etc so any IDE that has the features you want and supports those languages should work. The only down side is that you have to code it locally then copy it to the HG interface for compiling since HG scripts are not complete C#, etc codes. I did this initially with Notepad++ to use the helpful syntax highlighting features, but a more robust IDE would also include autocomplete.