---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# Code generation properties

# Code generation properties {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 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 <kbd class="ph userinput">sys_properties.list</kbd> in the navigation filter.
{#now-assist-code-properties__table_dsp_1h2_tyb__entry__2}

| 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](https://www.servicenow.com/docs/access?context=configure-a-now-assist-skill&version=xanadu&pubname=xanadu-intelligent-experiences&ft:locale=en-US). {#now-assist-code-properties__ul_esp_1h2_tyb} |
| sn_now_assist_code.enable_prompt_modal | Enables using the Code with Now Assist dialog box to provide text prompts. * Type: true \| false * Default value: true * Location: System Property \[sys_properties\] table * Learn more: [Generate scripts from text](https://servicenow-prod.fluidtopics.net/DzE1YBUq2vN_K7g1SprRDQ#generate-scripts-from-text "Write scripts quickly with AI-generated code by telling Now Assist what you want the script to do.") {#now-assist-code-properties__ul_xc3_t21_2cc} |
| 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](https://servicenow-prod.fluidtopics.net/bQL~SuxTM3JcHWeNAbJxUQ "Edit scripts quickly by telling Now Assist how to improve the code.") {#now-assist-code-properties__ul_a5j_t21_2cc} |
| 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. * Type: true \| false * Default value: true * Location: System Property \[sys_properties\] table * Learn more: [Tracking AI-generated code](https://servicenow-prod.fluidtopics.net/EUF8vztGdTofrD6Edh759Q#tracking-ai-generated-code "Control when to track and indicate that code is AI-generated.") {#now-assist-code-properties__ul_mbf_d32_tyb} |
| 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 {#now-assist-code-properties__ul_tbk_d32_tyb} |
[Table 1. Properties for code generation]

{#now-assist-code-properties__table_dsp_1h2_tyb}

