DocumentationEditing files in Drive
Creating and editing

Editing files in Drive

Drive edits five kinds of file in the browser. Whichever one you open, the way you save, review versions, and comment is the same.

What can be edited

EditorFile types
Document editor.docx
Spreadsheet editor.xlsx
Presentation editor.pptx
PDF editor.pdf
Text editor.txt, .md, .csv, .json, .xml, .yaml, .html, .css, .js, .ts, .jsx, .tsx, .py, .java, .c, .cpp, .cs, .go, .rb, .php, .sh, .sql, .log, .env, .properties and similar

Anything else can still be previewed and downloaded — it just has no editor.

Opening an editor

  • Choose Edit from a file's menu.
  • Or open the preview and select Edit in its toolbar.

Saving and autosave

Editors keep a local draft in your browser about a second after you stop typing, then — if Autosave is ticked — save that draft back to Drive shortly after. The status text next to the file name tells you where things stand, showing the current state, the time of the last save, and the time of the last local draft.

  • Untick Autosave to save only when you choose. Use File → Save, or press Ctrl + S (⌘ + S on a Mac).
  • File → Discard changes throws away the working draft and reloads the file as it is stored in Drive.
  • Saving updates the file everywhere — any other Drive tab you have open refreshes its list to match.
The editor title bar showing the save status and autosave toggle
The title bar carries the file name, the save status, and the Autosave toggle.

The menu bar

Every editor except the PDF editor has a menu bar. The menus change to suit the file type, but the pattern is consistent:

MenuContains
FileSave, Discard changes, Download, Export to PDF, Print, Back to Drive (plus Present for presentations).
EditUndo, Redo, find and replace, basic formatting, and cell or slide operations for the relevant editor.
ViewDetails, Version history, Comments, and view options like the document outline, text wrapping, and speaker notes.
InsertLinks, tables, rows and columns, slides, page breaks, and the built-in document templates.
FormatHeadings, bold/italic/underline, alignment, indentation, and lists.
ToolsFind and replace, word count, comments, activity, and file info.

Spreadsheets add a Sheet menu, presentations add a Slide menu, and documents add a Table menu.

The side panels

Three icons at the top right of the editor open panels beside your document:

PanelShows
DetailsFile name, type, size, save status, and per-editor statistics such as word count or sheet dimensions.
HistoryVersion history — the current saved version and the previous one, with timestamps.
CommentsThe comment thread for this file. Type a comment and select Add comment; your own entries are labelled You.

In the document editor, selecting text pops up a small formatting bar with a comment button, so you can start a comment from the passage it refers to.

Editing text and code files

Plain text files open in a straightforward editor with three modes on the Format menu:

  • Plain text — ordinary text.
  • Code — a monospaced view for source files.
  • Markdown — a rendered preview alongside the source.

View → Turn wrap on / off controls whether long lines wrap or scroll sideways.

Read-only editing sessions

If a file was shared with you as a commenter, the editor opens in read-only mode: you can read the content and add comments, but not change it. A View only badge makes this clear. See Sharing and permissions.