By default, editing a script tool will open a tool's source file using Notepad. To set the editor to your preferred editor of Python integrated development environment (IDE)
- Click the Project tab on the ribbon. In the list on the left, click Options.
- In the Options dialog box, click Geoprocessing.
- In the Script Editor dialog box, enter or browse to the IDE you will be using.
A common workflow when working with Python script tools is as follows:
- Edit your script and save your changes, but don't exit the editing application.
- Run the script tool.
- If need be, make more code changes, saving your edits but not exiting the editing application.
- Run the script tool again.
- When you're satisfied that your script is working correctly, exit the editing application.