Good IDE for bash scripting

view story

http://ubuntuforums.org – I'm trying to find a decent ide to use with bash scripting, it seems a lot of the top ides kind of overlook bash, I'm using geany but I would like one that has support for collapsing and expanding various sections of script like it does with python, for example collapse an IF statement so its out of the way to make long code more manageable, I would also like to find one if possible that can run your script from a single click button with a more verbosive output (like running `bash -x /path/to/script` in a terminal) if tried tweaking geany to use the bash -x flag and it doesn't seem to work. (Hardware)