I hardly ever use an IDE but Apple Pages allows you to assign each function key to a distinct style. For example F1 is document heading, F2 section heading, F3 subsection heading, F4 body, F5 blockquote etc. I have a document template with this mapping set and it's my default template in Pages. After using this setup for a few months I found that I can indeed touch type the function keys and it's extremely convenient. I imagine many office workers in the Apple universe (i.e. not MS office or google docs) would feel the same.