VS Code
Please help me increase the indent of line 2 to line 10 by one tab.
Aufgabe und Verlauf liegen im englischen Original vor.
- Ergebnis
- Gelöst
- Punkte
- 1 / 1
- Schritte
- 4
- Dauer
- 3 min 45 s
Bewertungskriterien
- Checks that the text file has the same content as the expected file.
Abschließende Antwort
Done! Lines 2 through 10 in test.py have been indented by one tab and the file has been saved.
Verlauf
Schritt 10:00
The task is to increase the indent of lines 2-10 by one tab. In VS Code I can select lines 2-10 via the line-number gutter (click line 2's number, shift+click line 10's number) and then press Tab to indent the selection by one tab, then save. This is a clean, reversible editor operation. I'll draft a short plan and commit it.
- Plan erstellt
- Select lines 2 through 10 in test.py via the line-number gutter
- Increase the selected lines' indent by one tab and save the file
- Plan bestätigt2 Teilziele
- Plan erstellt
Schritt 20:28
I'll select lines 2-10 by clicking the line-number gutter on line 2, then shift+clicking line 10's gutter to extend the selection. Then I'll press Tab to increase indent by one tab, and save with Ctrl+S.
- Klickthe line number 2 in the left gutter
- Klickthe line number 10 in the left gutter
Schritt 31:12
The selection is correct. Now I need to press Tab to increase the indent of all selected lines by one tab, then save with Ctrl+S.
- Tastenkombination
Tab - Tastenkombination
ctrl+s
- Tastenkombination
Schritt 41:34
Both subgoals are complete: lines 2-10 were selected and indented by one tab, and the file was saved. I can mark both subgoals as done and finish.
- Teilziel erreichtSelected lines 2-10 via gutter click and shift-click.
- Teilziel erreichtPressed Tab to indent the selection by one tab, then Ctrl+S to save.
- Als abgeschlossen gemeldet