WEBVTT

1
00:00:01.519 --> 00:00:08.820
Now, I already mentioned that one extra participant you can add to the chat is the terminal to

2
00:00:08.820 --> 00:00:12.720
ask questions about how to do something in the terminal.

3
00:00:13.780 --> 00:00:21.680
For example, here I could ask how to use Git to manage this project.

4
00:00:22.300 --> 00:00:27.320
So how can I use Git to manage this project?

5
00:00:27.780 --> 00:00:32.740
Now here I am actually already using Git, but if I weren't, I could ask about the command

6
00:00:32.740 --> 00:00:33.920
I need to run to use it.

7
00:00:34.120 --> 00:00:37.180
And of course here it's a very simple command in the end.

8
00:00:39.380 --> 00:00:47.020
I could also, of course, ask any other kind of terminal related question, like how can

9
00:00:47.020 --> 00:00:50.760
I run this Python code?

10
00:00:52.070 --> 00:00:55.320
And again, it will generate a command in the terminal.

11
00:00:57.520 --> 00:01:02.060
Now here, for me, maybe not for you, but for me, it actually put in this placeholder,

12
00:01:02.540 --> 00:01:03.540
which is not too helpful.

13
00:01:03.640 --> 00:01:06.100
I want to have the specific command to run this file.

14
00:01:06.600 --> 00:01:13.580
So I can ask again, no, I want to run this specific file.

15
00:01:15.300 --> 00:01:20.720
And it understands here that I'm talking about the file I have open in my editor and it tweaks

16
00:01:20.720 --> 00:01:21.220
this command.

17
00:01:23.280 --> 00:01:27.740
Now here it then gives me a button to insert this into the terminal.

18
00:01:29.800 --> 00:01:31.740
So if I hit enter, it does that.

19
00:01:32.720 --> 00:01:35.000
I still have to hit enter myself though.

20
00:01:35.380 --> 00:01:40.280
And that's a good thing because especially when running commands in the terminal, you

21
00:01:40.280 --> 00:01:45.580
should always double check them to make sure you're not accidentally deleting your operating

22
00:01:45.580 --> 00:01:47.180
system or something like this.

23
00:01:47.500 --> 00:01:48.240
So here I'm happy.

24
00:01:48.440 --> 00:01:51.360
I can hit enter and go ahead and run this.

25
00:01:52.920 --> 00:01:53.920
So that works.

26
00:01:54.240 --> 00:01:59.240
And that's another very useful way of using this chat that you can ask about the terminal.

27
00:02:00.380 --> 00:02:07.120
But you can do even more because in your terminal, you also can use the inline chat.

28
00:02:08.100 --> 00:02:13.040
So the inline chat now not in the code editor, but instead in the terminal.

29
00:02:13.420 --> 00:02:19.600
And therefore, of course, as you can also see here, it tries to generate terminal commands.

30
00:02:21.500 --> 00:02:23.840
So I could again say run this file.

31
00:02:26.480 --> 00:02:30.680
And it does not understand that I'm referring to this Python file.

32
00:02:31.480 --> 00:02:36.780
So neither that it's Python nor this file, at least right now when I'm running this.

33
00:02:37.480 --> 00:02:48.580
So I can try again, discard this, reopen it, run this Python file db backup.py.

34
00:02:50.459 --> 00:02:56.980
If I hit enter, I got a little display problem here.

35
00:02:58.220 --> 00:02:59.760
So now this looks better.

36
00:03:00.700 --> 00:03:05.480
I can now insert this or immediately run it if I evaluated it.

37
00:03:06.560 --> 00:03:11.540
But it actually fails because Python 3 would have been correct here.

38
00:03:13.200 --> 00:03:17.640
But maybe it did work for you or it suggested the right command for you.

39
00:03:17.960 --> 00:03:24.680
Either way, you can also generate terminal commands right from inside the terminal with

40
00:03:24.680 --> 00:03:29.060
this inline chat, which of course can also be very useful because it saves you the extra

41
00:03:29.060 --> 00:03:34.900
hassle of opening the sidebar, typing everything in here and then running the command from

42
00:03:34.900 --> 00:03:35.220
in here.

43
00:03:35.960 --> 00:03:38.440
Though that's, of course, also a fine option.

44
00:03:38.560 --> 00:03:43.400
But the most important thing is to know about these features because they can also help

45
00:03:43.400 --> 00:03:45.260
you work with the terminal more efficiently.

46
00:03:45.900 --> 00:03:51.320
They can save you some time you otherwise might need to Google for a certain command

47
00:03:51.320 --> 00:03:51.900
you want to run.

48
00:03:52.320 --> 00:03:57.620
And therefore, ultimately, they can add to your efficiency and speed as a developer.

