How do you use TikZ efficiently in Lyx? I understand I have to go to Insert->Tex code, which opens a box where I can type actual Tex code. But it's really difficult, there is no indentation, everything I type is in one color only. (Note: I'm using Lyx on Mac) Is there any easier way to do this?
You could use a Latex editor and copy paste the code once you're done. Or use a Latex editor, save file and import it to lyx. lyx is supposed to be a text editor, somewhat like MS word, and indeed using ERT is not fun.
btw, you can use ctrl+L to open the ERT box