<!--
{
  "documentType" : "article",
  "framework" : "Xcode",
  "identifier" : "/documentation/Xcode/source-editor",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Source editor"
}
-->

# Source editor

Edit your source files, locate issues, and make necessary changes using the source editor.

## Topics

### Source file creation, organization, and editing

[Editing source files in Xcode](/documentation/Xcode/editing-source-files-in-xcode)

Use features of the source editor to help you write, navigate, document, and understand code more quickly.

[Using coding intelligence in the source editor](/documentation/Xcode/using-coding-intelligence-in-the-source-editor)

Submit prompts in the same place you want to make changes to your code.

[Running code snippets using the playground macro](/documentation/Xcode/running-code-snippets-using-the-playground-macro)

Add playgrounds to your code that run and display results in the canvas.

### Issue detection

[Fixing issues in your code as you type](/documentation/Xcode/fixing-issues-in-your-code-as-you-type)

Minimize typing-related errors using code completion, and let Xcode fix common
mistakes for you.

### Code search and refactoring

[Finding and refactoring code](/documentation/Xcode/finding-and-refactoring-code)

Search your code for text, patterns, and symbols that you can refactor quickly and
easily.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)