Code Modification

You can make use of the Pieces Copilot Modify function to add additional functionality to your selected code.

To use this feature, select a portion of the code, then right-click and navigate to Ask Copilot, then Modify .

In this example, we want to add a missing positional argument to the add_user function:

Try using the Modify function to implement error handling, update deprecated methods, add logging to several functions, or refactor variable names for consistency.

Updated on