Skip to content

Commit 2dcc9ff

Browse files
authored
Create editing_python_source_vscode.rst
1 parent be95fd9 commit 2dcc9ff

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
.. include:: ../../the_section_is_optional.rst
2+
3+
.. _Editing Python source:
4+
5+
Editing Python source (with :program:`VS Code`)
6+
===============================================
7+
8+
.. note:
9+
The program you use to edit sources is an aesthetic/convenience choice. It does not affect how ROS2 works.
10+
11+
There are near-infinite ways to manage your Python code and, in this section, we will use :program:`VS Code`.
12+
13+
Installing :program:`VS Code`
14+
----------------------------
15+
16+
It is important to have a predicable enviroment for the tutorial, therefore we will download a particular version of :program:`VS Code`.
17+
18+
Run
19+
20+
.. code :: console
21+
22+
cd ~
23+
mkdir ros2_workspace_vscode
24+
cd ros2_workspace_vscode
25+
wget https://update.code.visualstudio.com/1.93.0/linux-deb-arm64/stable
26+
sudo dpkg -i code_1.93.0*.deb
27+
28+
29+
Running :program:`VS Code`
30+
--------------------------
31+
32+
It will be installed as a regular Ubuntu application, so you can find it by searching for "Visual Studio Code". It is also beneficial to right-click the icon in search and choose "Add to Favourites".
33+
34+
Running :program:`VS Code`
35+
--------------------------
36+
37+
Click :kbd:`CTLR` :kbd:`Shift` :kbd:`X` to open extensions.
38+

0 commit comments

Comments
 (0)