Skip to content

Conversation

@cwebster-99
Copy link
Member

  • Adding new Python Quick Start page
  • Adding media files for Quick Start page
  • Reordering the remainder of the docs

@cwebster-99 cwebster-99 requested a review from luabud January 9, 2024 23:06
Order: 1
Area: python
TOCTitle: Quick Start
ContentId: 77828f36-ae45-4887-b25c-34545edd52d3
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was copied from another file so will need to be updated. Where do I get a new ContentId?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is just a GUID, which you can generate however you want (I used the nwallace.createguid extension per Greg's suggestion 😊)


### Open an existing Python project or file

If you have an existing Python project you wish to work on in VS Code, you can begin by opening your folder or file from the VS Code welcome page or Explorer panel, or by selecting **File -> Open Folder** (Ctrl+K Ctrl+O) or **File -> Open File** (Ctrl+O).
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to add the kb.style shortcut for these commands


### Create new Python scripts

If you are starting a new Python script, you can create Python files directly in VS Code. You can create a new Python file by selecting **New File** in the VS Code Welcome page and select **Python file**, or navigating to **File -> New File** (ADD SHORTCUT).
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to add kb.style shortcut


### Open an existing Python project or file

If you have an existing Python project you wish to work on in VS Code, you can begin by opening your folder or file from the VS Code welcome page or Explorer panel, or by selecting **File -> Open Folder** (Ctrl+K Ctrl+O) or **File -> Open File** (Ctrl+O).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since it's a quick start maybe we should cover just one flow?
I think it makes sense to go with the generic File > Open folder since it's applicable for other languages as well.


To start debugging, initialize the debugger by pressing `F5`. Since this is your first time debugging this file, a configuration menu will open from the Command Palette allowing you to select the type of debug configuration you would like for the opened file or project.

The program will stop at the breakpoint you set, and you can track data in the Python Debug console, and progress through your program using the debug toolbar.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure how to rephrase this but basically if someone adds a breakpoint to a line that isn't executed, this won't be true. E.g.

if false:
    print("hi") # a breakpoint on this line will not be hit


![Gif showing how to configure the Python debugger for the first time.](images/quick-start/qs-python-debug.gif)

After selecting a debug configuration, you can also start the debugger by clicking on the down-arrow next to the run button on the editor and selecting **Debug Python File in Terminal**.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest to remove this too, keeping it simple with F5 (or direct users to the Run and Debug view instead. Either or, we should probably suggest one flow only)

@luabud
Copy link
Member

luabud commented Jan 11, 2024

this is so exciting!! 🥳

cwebster-99 and others added 3 commits January 11, 2024 09:05
@cwebster-99 cwebster-99 marked this pull request as ready for review January 17, 2024 17:45
@cwebster-99 cwebster-99 requested a review from luabud January 17, 2024 17:45
@vscodenpa vscodenpa added this to the December / January 2024 milestone Jan 17, 2024
luabud
luabud previously approved these changes Jan 17, 2024
@cwebster-99 cwebster-99 requested a review from ntrogh January 17, 2024 18:07
ntrogh
ntrogh previously approved these changes Jan 18, 2024
Copy link
Contributor

@ntrogh ntrogh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly minor text updates and use of relative links to VS Code docs.

@cwebster-99 cwebster-99 dismissed stale reviews from ntrogh and luabud via 2476587 January 18, 2024 15:31
Co-authored-by: Nick Trogh <1908215+ntrogh@users.noreply.github.com>
@cwebster-99
Copy link
Member Author

@ntrogh Thanks for the review! Since this is a newly added page, are there any additional changes to ensure it shows up correctly in the Python section?

@ntrogh
Copy link
Contributor

ntrogh commented Jan 18, 2024

@ntrogh Thanks for the review! Since this is a newly added page, are there any additional changes to ensure it shows up correctly in the Python section?

@cwebster-99 I've added the new article to the sitemap information. In addition, I've enlisted the article in our feedback system, so readers can use the feedback control on the page. We have a recovery release going out later today, so I'll hold off on publishing the site until after that. The new page should be up tomorrow.

@ntrogh
Copy link
Contributor

ntrogh commented Jan 18, 2024

@cwebster-99 ready for your final review. Then we can publish tomorrow.

@cwebster-99
Copy link
Member Author

@ntrogh Left a couple of comments on things I wasn't sure about and updated a gif to better align with the debug description. LGTM!

Co-authored-by: Courtney Webster <60238438+cwebster-99@users.noreply.github.com>
@ntrogh ntrogh merged commit 32cf423 into main Jan 18, 2024
@ntrogh ntrogh deleted the python-quick-start branch January 18, 2024 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants