ShareMaster is shaped by your feedback. Tell us what to build next →
Features All features overview
Migration Tools Overview Structure and content OneDrive ↔ SharePoint Content only Structure only Move / Copy Upload from this computer Download to this computer Dropbox to SharePoint Resume and incremental runs
Microsoft Teams Overview Copy a team Move channels Merge teams Inactive teams Ownerless teams Guests and external access Export a team Search everyone's chats
Recycling Bin Overview Browse a site's recycle bin Empty recycle bins in bulk Restore and purge history Deleted teams
Archive Overview Configure the tenant On Demand Archive Restore Archived Files Archive Savings Report Blob Viewer
Optimise Storage Tools Overview Delete all items in a list Delete all files and folders in a library Remove empty folders Remove duplicate files Reduce image sizes Delete sites and subsites
SharePoint Tools Overview Tenant Explorer SharePoint Explorer Easy Settings Fix renamed groups List Explorer Search the Preservation Hold Library
Search & Indexing Overview Search query Item search properties Reindex Crawl log
Replace Overview Replace in SharePoint Replace in local files Find password-protected files Remove PDF passwords
Shared Links Overview Report shared links Report unique permissions Remove a person from sharing links Remove shared links Remove unique permissions
Version History Overview Version trimming Version trimming report Reset file version
Reports Overview Inventory report Folder inventory Site and subsite storage Storage growth Security matrix Teams permissions Pre-migration analysis Compare items Dropbox to Microsoft 365 compare Duplicate file report Empty folder report Image size report Recycle bin report Unused licences Copilot readiness Inactive sites, OneDrives and groups Orphaned users Site settings Audit activity Groups Checked-out files report Report history
Developer Tools Overview Query Builder PnPjs Console Property Bags SPFx Customizers Webhooks Customisation audit
Pricing Services Demos Blog Guides Use cases Compare Tools Alerts FAQ Contact
  1. Home
  2. Documentation
  3. SharePoint Tools

Code editor

Edit a site's text and script files

Open a text or script file from a SharePoint site in a code editor with colouring for its type, change it, and save it straight back. Scriptable files such as .aspx are saved by turning custom scripts on for the site only for the save, after you agree.

Makes changes. Save overwrites the file in SharePoint; a library that keeps versions keeps the old one as a version. For .aspx and similar files it turns custom scripts on for the site, saves, then turns them back off, after you agree.

What does it do?

  • How to fix a page, script, stylesheet or config file in a site without downloading and uploading it.
  • Whether a file can be saved when the site blocks custom scripts.
  • Whether the site was put back the way it was after a save.

How it runs

  1. Open the file. In SharePoint Explorer, right-click a file and choose Edit code. In Tenant Explorer, select the file and choose Edit code. The editor opens in its own window, so you can keep browsing.
  2. Edit. The bar shows the language, the encoding, and an Unsaved mark once you change something.
  3. Save. Save, or Ctrl+S, writes the file back in the same encoding. If the file was replaced or deleted since you opened it, the save is refused and you are asked to reload.
  4. Scriptable files. For .aspx, .master and similar files on a site that blocks custom scripts, you are asked first. Yes turns custom scripts on, saves, then turns them back off. No keeps your edits in the editor.
  5. Reload or view. Reload discards your changes and reads the file again. Open in browser shows the file in SharePoint.

What do you need?

  • Write access to the file. Any sign-in opens and saves an ordinary text file.
  • For a scriptable file on a site that blocks custom scripts: your own sign-in as a SharePoint administrator. A certificate cannot change that setting.
  • Every plan.

What will it not do?

  • Text files up to 5 MB only, such as .aspx, .html, .js, .css, .json, .xml, .txt and .ps1.
  • If custom scripts cannot be turned back off, the editor says so and will not close until you try again or choose to leave them on.
  • If ShareMaster stops in the middle of a save, the next time you connect it offers to turn custom scripts back off on that site, or to leave them on.
  • Closing with unsaved changes asks first. Edits are not kept anywhere once you close.

See every feature