Initializing help system before first use

Formatting Code

You can reformat Python code according to a set of consistent layout rules.
  1. To reformat a Python file, click the Edit menu and select from the Formatting options.
    Note that the entire Python file is formatted, irrespective of how much code is selected in the editor. This is because a selection might not be syntactically valid on its own, so the entire file is required for context.

    The Python formatter respects the project settings regarding the use of tabs or spaces in a file. It does not currently have any other configuration options.

    Tip: If you are working on the same Python file in another IDE besides Xpress Workbench, be aware that the other IDE might have different formatting rules, or its rules might be configured differently. To avoid making unnecessary cosmetic changes that might make it harder to compare code versions, use only one IDE consistently for formatting.

© 2001-2024 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.