You can do it different ways, changing settings in Systems Preferences or the easiest way is doing the following.
If you don't want to go into Systems Preferences to open an app for the first time as shown above, then simply Control+Click on the app in the Finder, then select "Open." You'll see...