File tree Expand file tree Collapse file tree 1 file changed +4
-30
lines changed Expand file tree Collapse file tree 1 file changed +4
-30
lines changed Original file line number Diff line number Diff line change @@ -27,40 +27,14 @@ here.
27
27
28
28
## Code Completions
29
29
30
- In order for VSCode to pick up the ` sr.robot ` library and offer [ completions] [ code-completion ]
31
- you'll need to tell it where to find the library files:
30
+ In order for VSCode to pick up the ` sr.robot3 ` library and offer [ completions] [ code-completion ]
31
+ you'll need to make the library available within the Python environment that you're using.
32
32
33
33
1 . Open the workspace containing your code.
34
- 2 . Open your [ workspace settings] [ workspace-settings ] file:
35
- * On Windows/Linux - ** File** > ** Preferences** > ** Settings** .
36
- * On macOS - ** Code** > ** Preferences** > ** Settings** .
37
-
38
- 3 . Select ** Workspace** (rather then ** User** ).
39
- 4 . Search for ` python.autoComplete.extraPaths ` .
40
- 5 . Click "Edit in settings.json".
41
- 6 . Add the path to the directory which contains the ` sr ` directory, within
42
- double quotes. The path can be either relative to your project or absolute.
43
-
44
- For example if developing code for the simulator and you have extracted the
45
- simulator directory next to your code:
46
-
47
- ```
48
- .
49
- ├── competition-simulator-<version>
50
- │ ├── ...
51
- │ ├─ modules
52
- │ │ └── sr
53
- │ │ └── robot
54
- │ │ └── ...
55
- │ └─ worlds
56
- │ └── Arena.wbt
57
- └── robot.py
58
- ```
59
-
60
- then the path you should add is ` "competition-simulator-<version>/modules/" ` .
34
+ 2 . Open a terminal via ** Terminal** > ** New Terminal** .
35
+ 3 . Run ` pip install sr.robot3 ` .
61
36
62
37
[ code-completion ] : https://en.wikipedia.org/wiki/Autocomplete#In_source_code_editors
63
- [ workspace-settings ] : https://code.visualstudio.com/docs/getstarted/settings#_creating-user-and-workspace-settings
64
38
65
39
## Interactive Debugging
66
40
You can’t perform that action at this time.
0 commit comments