think on your feet - definition and synonyms

phrase
  1. to have good ideas and make decisions quickly in a difficult situation

    You have to think on your feet in this job.

See also main entry: think