In System Preferences > Keyboard > Shortcuts, Add the app to "Function Keys". This will make the function keys appear whenever you're using that app. Add short cut to "App Shortcuts"