AppCode 2023.1 Help

Safe delete

AppCode lets you use the Safe Delete refactoring to remove files and symbols from the source code safely. Before AppCode deletes a file or a symbol, it searches for usages and if they are found, AppCode lets you check them to make necessary adjustments.

Safe delete

  1. Select a file/directory in the Project tool window or a symbol in the editor.

  2. Select Refactor | Safe Delete from the main or context menu or press Alt+Delete.

  3. In the dialog that opens, deselect the Search in comments and strings checkbox if you want AppCode not to search for occurrences in comments and strings.

    Deselect Search for text occurrences if you want AppCode not to search for the occurrences in text files.

    Click OK

  4. If AppCode encountered potential problems, it displays the Usages Detected dialog. Proceed with the appropriate action.

Last modified: 21 April 2022