Browsing in the App
Source Files has its own browser for things the Files app can't do. Choose Browse in Source Files from a repository's context menu, or Browse in New Window on a Mac.
Its code editor with syntax highlighting lets you fix a file without cloning the repository, and saving commits the change.
On a Mac the same commands are in the menu bar.
Finding files
The search field finds files by name in this folder and every folder below it, matching every word you type.
View Options sorts the list, keeps folders on top, shows hidden files or shows photos and videos as a grid.
Favourite folders
Add to Favourites, in the toolbar or a folder's context menu, saves a folder to jump back to from Favourite folders.
Creating and uploading
The Create & Upload menu makes folders and empty files, and uploads files, folders, images or the clipboard. Each new file is a commit, and a new folder is committed as an empty .gitkeep file.
A Live Activity shows upload progress on the Lock Screen, and Retry tries a failed upload again.
Working with a file
Long-press a file, or right-click it on a Mac, to download, rename, duplicate, move, delete or share it, or copy a link to its page on the service with Copy Link.
Editing text files
Tap a text file to view it, then tap Edit to change it. The editor highlights Swift, Python, JavaScript, TypeScript, HTML, CSS, JSON, YAML, Markdown, shell scripts, C, C++, Go, Rust, Ruby, Java, PHP, SQL, XML and TOML, and shows other text files plain.
The bar above the keyboard has Insert Tab and Find, and a menu with Line Numbers, Wrap Lines and the text size. Save commits the file to the branch; see How Saving Works. Files up to 1 MB can be edited, and the editor remembers where the cursor was in recent files.
Troubleshooting
- File is too large to edit (max 1 MB). Open it from the Files app or Finder in an editor app instead.
- The edit buttons are missing. The repository is read-only for your account; see Repository Problems.