repl.it
@turbio/

replit docs

Nodejs

these are the docs for repl.it hosted on repl.it at docs.repl.it

fork
loading
Files
  • index.js
  • classrooms
  • media
  • misc
  • repls
    • dashboard.md
    • dot-replit.md
    • editor.md
    • embed.md
    • files.md
    • http-servers.md
    • intro.md
    • packages.md
    • python-plots.md
    • secret-keys.md
    • web-hosting.md
  • static
  • views
  • _.js
  • README.md
  • sidebar.json
  • Packager files
  • package-lock.json
  • package.json
repls/editor.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# Editor Tips and Tricks

The following “Tips and Tricks” will teach you how to be productive in Repl.it code editor. Here, you will become familiar with the code editor’s powerful shortcuts for editing, writing, and inspecting code.


## Command Palette

The command palette allows you to view all available commands based on your current context. 

To access the command palette on a Mac, press `shift+cmd+P`. On other computers, press `ctrl+shift+P`.

![command palette](https://media.giphy.com/media/QfHVAcYeIKD3D3COZ0/giphy.gif)

## Frequently Used Keyboard Shortcuts

The following keyboard shortcuts can be used in a variety of ways. If you forget a keyboard shortcut, check the command palette.


### Moving the Current Line

Press `option+up` or `option+down` on a Mac to move the current line up or down. 

On other computers, press `alt+up` or `alt+down`.

![move line](https://media.giphy.com/media/TI9imRT8QpTGHYuaLw/giphy.gif)

### Copying the Current Line

Press `shift+option+up` or `shift+option+down` on a Mac to copy the current line above or below.

On other computers, press `shift+alt+up` or `shift+alt+down`.

![clone line](https://media.giphy.com/media/WqXFTA3784FlOk15aW/giphy.gif)

### Selecting Lines

Press `cmd+I` on a Mac to select a line. 

On other computers, press `ctrl+I`.

![select line](https://media.giphy.com/media/ftAlnwDT2U4KcRP6rs/giphy.gif)

### Deleting Lines

Press `shift+cmd+K` on a Mac to delete a line.

On other computers, press `ctrl+shift+K`.

![delete line](https://media.giphy.com/media/mCK6qXeh9AUfsjc6QE/giphy.gif)

### Inserting Lines

On a Mac, press `shift+cmd+enter` to insert a line above.

On other computers, press `ctrl+shift+enter`.

![insert line](https://media.giphy.com/media/iIYTXMcdYl1Q5IEC8t/giphy.gif)

### Adding Cursors

Press `cmd+option+up` or `cmd+option+down` on a Mac to add cursors above or below your current line. 

On other computers, press `ctrl+alt+up` or `ctrl+alt+down`.

![adding cursors](https://media.giphy.com/media/S6NFcjap96u7Dsv7Oc/giphy.gif)

### Find

Press `cmd+F` on a Mac to find.

On other computers, press `ctrl+F`.

![find](https://media.giphy.com/media/Zcd66Tdu4DjTSc6kgv/giphy.gif)

### Replace

Press `option+cmd+F` on a Mac to replace.

On other computers, press `ctrl+H`.

![replace](https://media.giphy.com/media/ck5DYmEfyv6LVgCAQM/giphy.gif)

### Find Next/Previous

On a Mac, press `cmd+G` to find next or `shift+cmd+G` to find previous.

On other computers, press `F3` to find next or `shift+F3` to find previous.

![find next](https://media.giphy.com/media/Zcd66Tdu4DjTSc6kgv/giphy.gif)

### Adding Selections to Next Find Match

Press `cmd+D` on a Mac to add a selection to the next find match.

On other computers, press `ctrl+D`.

![adding selections](https://media.giphy.com/media/MeJNRP69h6EAkrHqBC/giphy.gif)

## Navigation

Use the following shortcuts to navigate the editor.

### Open files

Press `cmd+P` on a Mac to quickly open files.

On other computers, press `ctrl+P`.

![Open files](https://media.giphy.com/media/RMrVva0au7Eac8bKMW/giphy.gif)

### Go to Line

Press `cmd+G` on a Mac to go to a specified line.

On other computers, press `ctrl+G`.

![go to line](https://media.giphy.com/media/cmwP1EbWQVh0fwAzfb/giphy.gif)

Fetching token
?