---
sourceDocument: Yokohama Build or modify applications
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/yokohama/application-development

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama Build or modify applications

ft:clusterId :

    - cadev

bundleId :

    - cadev

workflow :

    - Development, Data, and Analytics


---

# Edit code with Quick Actions

# Edit code with Quick Actions {#ariaid-title1}

* Release version: Yokohama
* 
* Updated January 30, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Edit code in the ServiceNow Otto for Code enabled script editor using quick actions.

## Before you begin

Role required: now.assist.creator

## Procedure

1. Navigate to any script editor enabled with ServiceNow Otto for Code and select a script.
2. In the script editor, select a code and then select the Quick Actions button.
3. Select Edit code.
4. In the Edit code with Now Assist dialog box, describe the code you want to generate, and then select the submit (![Submit icon]()) icon.  
   The code suggestion appears highlighted in the script editor.
5. Review the AI-generated code and then either accept or reject the suggestion.  
   If you accept the code suggestion, it's added to the script. If you reject the suggestion, it isn't added to the script. You can rephrase the prompt to generate a new code suggestion.
6. After you modify the code, select Update to save your changes.  
   Note:  
   Depending on your workflow needs, you can use the prompt modal in either inline or floating mode. In the inline mode, the prompt modal is embedded within the script editor. In the floating mode, you can move the prompt modal around the script editor. Toggling between these two modes is simple. When in inline mode, select the Pop Out toggle to switch to floating mode. Conversely, when in floating mode, select the Pop In toggle to return to inline mode. The transition between inline and floating modes preserve all text within the modal.

