VSCode - Flutter Flashcards

shortcuts, how-tos

1
Q

new project

A

To create a new Flutter project from the Flutter starter app template:

Open the Command Palette (Ctrl+Shift+P (Cmd+Shift+P on macOS)).
Select the Flutter: New Project command and press Enter.
Enter your desired Project name.
Select a Project location.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

https://flutter.dev/docs/development/tools/vs-code

A

https://flutter.dev/docs/development/tools/vs-code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

open terminal

A

ctrl-`

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

run app

A

in terminal, flutter run

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

reformat dart file

A

opt-shift-f

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

open file explorer

A

shift-cmd-e

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

hot reload

A

r in terminal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

restart

A

shift-r

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

refactor options for widget, e.g. to wrap in new widget

A

select or move cursor to widget, then cmd+.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

debug inspector; Dart Devtools

A
  1. start debug session with debug-> start debugging
  2. Once the debug session is active and the application has started, the Dart: Open DevTools command will become available in the VS Code command palette
  3. DevTools will launch in your browser and automatically connect to your debug session.
  4. While the Dart DevTools are active, you’ll see them in the status bar of VS Code. If you’ve closed the browser tab, you can click on here to re-launch your browser (so long as there’s still a suitable Dart/Flutter debugging session available).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

to enable hot reload on save, and other debug functionality

A

enter debug session with debug-> start debugging

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

start debugging

A

fn-f5

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

stop debugging

A

shift-fn-f5

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

start without debugging

A

cntrl-fn-f5

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

show/hide side panel

A

cmd-b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

show/hide bottom panel

A

cmd-j

17
Q

hot restart shortcut

A

shift-fn-command-f5

18
Q

linter?

A

pedantic