Enter or a double-click opens the selected file with Windows, opens a folder in the list, and shows an archive as a folder. A program starts in its own folder.Space shows a preview without opening anything.F3 views the selected file:- A text file opens read-only in the built-in editor. That includes source files,
.txt,.md,.json, and names such asMakefileandREADME. - An image the program can decode, such as PNG or JPEG, opens in the image viewer.
- A file with binary content, or one too large to load as text, opens in the hex view. Any other file opens as text.
On online storage,
F3 works on a local copy.Hex view #
The hex view shows the offset, the bytes and their characters. It only reads what is on the screen, so a file of any size opens at once. It reads and never writes.
Shift + F3 shows any selected file in the hex view, and in a viewer tab switches between text and bytes. Ctrl + G goes to an offset: 0x1F, 1Fh and 1f are hexadecimal, and 31 is decimal. The arrow keys, PgUp, PgDn, Home, End, the mouse wheel and the scroll bar move around.Ctrl + F searches from the top of the screen, and a large file doesn’t hold anything up: Esc stops it. Text is found in any case, "text" in its exact case, and 0x4D 5A finds bytes. F3 goes to the next match and Ctrl + F3 to the previous one.The tab docks and moves between windows like a text tab.
F4 edits a text file in the built-in editor. It refuses a file that is not text.Both commands need a single selected file. They do nothing in the clipboard history.
A text file opens as a tab in its own window, with quick access collapsed and no status bar. Toggle Status Bar, in the command palette, shows it in that window. The next file you open with
F3 or F4 becomes a new tab beside the text tab you used last, wherever that tab is now. Drag a text tab to move it to another pane or window, or drop it outside the window to give it a window of its own.The text menu #
A text tab has a menu above the text.
Alt + F, Alt + E, Alt + S, Alt + V and Alt + T open its menus, and the arrow keys move between them.- File. Save, Save As (
F6), Save a Copy (Ctrl + F6), Revert from File (F5), Read Only, the encoding and line endings to save with, Reopen as another encoding, Copy Path, and Open Containing Folder. - Edit. Undo, the clipboard, and:
- Select. The word, the line (
Ctrl + L), the next match too (Ctrl + Shift + L), all matches, and the matching brace (Ctrl + ]). - Lines. Move (
Alt + Up,Alt + Down), duplicate (Ctrl + D), delete (Ctrl + Shift + D), transpose (Alt + D), join (Ctrl + J), wrap at a column, and remove or merge duplicate, empty and blank lines. - Sort Lines. Ascending, descending, ignoring case, by length, and reverse.
- Indent and Blanks. Strip, compress and pad blanks, add text to each line’s start or end, and turn indents into tabs or spaces.
- Comment. Line comments (
Ctrl + Q) and block comments (Ctrl + Shift + Q), for the file’s language. - Enclose Selection. Quotes and brackets.
- Convert. Upper case (
Ctrl + Shift + U), lower case (Ctrl + U), invert, title and sentence case, Base64, URL encoding, C escapes, and swapping/and\. - Insert. A new line (
Ctrl + Enter), the date and time (Ctrl + F5), a GUID, and increasing or decreasing the number at the caret. - Bookmarks. Toggle (
Ctrl + F2), next (F2), previous (Shift + F2) and clear (Alt + F2).
- Select. The word, the line (
- Search. Find, Replace, and Go to Line (
Ctrl + G). - View. Word Wrap (
Alt + Z), blanks, line numbers, indentation guides, highlighting the current line, the matching brace and other occurrences of the selection, syntax, folding, and zoom (Ctrl + Alt + =,Ctrl + Alt + -). - Settings. Tab width, auto indent, and auto close brackets.
With nothing selected, the commands that work on lines use the caret’s line, and Sort Lines, Remove and Merge use the whole file. What you choose in View and Settings is kept for the next file you open.
Ctrl + W closes the tab. If the tab has unsaved changes, you are asked whether to save them. The same happens when you close a window that has such a tab.