Code generation properties

  • Release version: Xanadu
  • Updated August 1, 2024
  • 1 minute to read
  • You can adjust how code generation functions on an instance using several advanced properties.

    Note:
    To open the System Properties [sys_properties] table, enter sys_properties.list in the navigation filter.
    Table 1. Properties for code generation
    Property Description
    sn_now_assist_code.enable_code_assist

    Enables using code generation in supported script editors.

    • Type: true | false
    • Default value: true
    • Location: System Property [sys_properties] table
    • Learn more: You can also enable code generation from Now Assist Admin. For more information, see Activate a Now Assist skill.
    sn_now_assist_code.enable_prompt_modal

    Enables using the Code with Now Assist dialog box to provide text prompts.

    sn_now_assist_code.enable_code_edit

    Enables editing code with Now Assist.

    • Type: true | false
    • Default value: true
    • Location: System Property [sys_properties] table
    • Learn more: Edit code with Now Assist
    sn_now_assist_code.show_ai_code_line_marker

    Enables tracking which lines of code are AI-generated. This code is indicated by a line next to the lines of code in a script editor. If you edit AI-generated code, the line indicator doesn’t appear for those lines of code.

    sn_now_assist_code.collect_schema_for_code_assist

    Specifies whether to collect the data schema of the table a business rule or client script runs on when using code generation. If you set this property to false, you can receive code suggestions quicker but may get less contextual suggestions.

    • Type: true | false
    • Default value: true
    • Location: System Property [sys_properties] table