Skip to content

Commit e06966b

Browse files
committed
Adding setting mention
1 parent 5b5720c commit e06966b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/python/python-tutorial.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ There are three other ways you can run Python code within VS Code:
158158

159159
2. Select one or more lines, then press `kbstyle(Shift+Enter)` or right-click and select **Run Python > Run Selection/Line in Python Terminal**. Alternatively, you can activate Smart Send using `kbstyle(Shift+Enter)` without a selection and the Python extension will send the smallest runnable block of code near where your cursor is placed to the terminal. This command is convenient for testing just a part of a file.
160160

161-
3. From the Command Palette (`kb(workbench.action.showCommands)`), select the **Python: Start Terminal REPL** command to open a REPL terminal (notated by `>>>`) for the currently selected Python interpreter. In the REPL, you can then enter and run lines of code one at a time.
161+
> **Note**: If you prefer to send code at the particular line your curoor is placed, you can turn off Smart Send by setting `python.REPL.enableREPLSmartSend : "false"` in you **User** settings.
162+
163+
1. From the Command Palette (`kb(workbench.action.showCommands)`), select the **Python: Start Terminal REPL** command to open a REPL terminal (notated by `>>>`) for the currently selected Python interpreter. In the REPL, you can then enter and run lines of code one at a time.
162164

163165
Congrats, you just ran your first Python code in Visual Studio Code!
164166

0 commit comments

Comments
 (0)