Question: How can you set files to save automatically when launching an application?

  1. Click Window (Eclipse) -> Preferences -> Run/Debug -> Launching, and then select Save required dirty editors before launching.
  2. Click Window (Eclipse) -> Preferences -> Java -> Editor -> Save Actions
  3. Click File -> Save All.
  4. Change the project's run configuration.

Answer: The correct answer of the above question is Option A:Click Window (Eclipse) -> Preferences -> Run/Debug -> Launching, and then select Save required dirty editors before launching.