HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

edit — A terminal-based text editor from Microsoft. More information: <https://github.com/microsoft/edit>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
terminaleditorcommandtextfromclieditbased

Problem

How to use the edit command: A terminal-based text editor from Microsoft. More information: <https://github.com/microsoft/edit>.

Solution

edit — A terminal-based text editor from Microsoft. More information: <https://github.com/microsoft/edit>.

Open a file:
edit {{path/to/file}}


Search for a pattern:
<Ctrl f>{{pattern}}<Enter>


Find and replace a pattern:
<Ctrl r>{{pattern}}<Enter>


Copy text:
<Ctrl c>


Paste text:
<Ctrl v>


Open the File menu:
<Alt f>


Quit:
<Ctrl q>

Code Snippets

Open a file

edit {{path/to/file}}

Search for a pattern

<Ctrl f>{{pattern}}<Enter>

Find and replace a pattern

<Ctrl r>{{pattern}}<Enter>

Copy text

<Ctrl c>

Paste text

<Ctrl v>

Context

tldr-pages: common/edit

Revisions (0)

No revisions yet.