-
Notifications
You must be signed in to change notification settings - Fork 716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update VS Code page #5958
Update VS Code page #5958
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -4,19 +4,49 @@ description: You can use VS Code to develop Dart apps. | |||||||||||||||||||||||||
toc: false | ||||||||||||||||||||||||||
--- | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
With the Dart plugin, you can use [Visual Studio Code (VS Code)][vs-code] | ||||||||||||||||||||||||||
to develop Dart apps. | ||||||||||||||||||||||||||
The Flutter site has details on how to set up and use VS Code for Flutter apps. | ||||||||||||||||||||||||||
To develop Dart apps, | ||||||||||||||||||||||||||
install [Visual Studio Code][vs-code] (VS Code) | ||||||||||||||||||||||||||
and add the [Dart extension][]. | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
Until this page has more information, | ||||||||||||||||||||||||||
see the Flutter documentation for instructions that you can apply to | ||||||||||||||||||||||||||
other kinds of Dart apps: | ||||||||||||||||||||||||||
## Install VS Code | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
* [Set up an editor][setup] on the Flutter site has | ||||||||||||||||||||||||||
instructions for installing the Flutter and Dart plugins into VS Code. | ||||||||||||||||||||||||||
* [Visual Studio Code][vscode-flutter] on the Flutter site has | ||||||||||||||||||||||||||
details on using VS Code to develop Flutter apps. | ||||||||||||||||||||||||||
To build and debug apps, | ||||||||||||||||||||||||||
you can use the [VS Code][] integrated development environment. | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
[setup]: {{site.flutter-docs}}/get-started/editor?tab=vscode | ||||||||||||||||||||||||||
To install the latest version of VS Code, | ||||||||||||||||||||||||||
follow Microsoft's instructions for the relevant platform: | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
- [Install on macOS][] | ||||||||||||||||||||||||||
- [Install on Windows][] | ||||||||||||||||||||||||||
- [Install on Linux][] | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
[VS Code]: https://code.visualstudio.com/ | ||||||||||||||||||||||||||
[Install on macOS]: https://code.visualstudio.com/docs/setup/mac | ||||||||||||||||||||||||||
[Install on Windows]: https://code.visualstudio.com/docs/setup/windows | ||||||||||||||||||||||||||
[Install on Linux]: https://code.visualstudio.com/docs/setup/linux | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
## Install the VS Code Dart extension | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
With the Dart extension installed, | ||||||||||||||||||||||||||
you can compile, deploy, and debug Dart apps. | ||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again, seems like another unnecessary repetition of the intro sentence lines 7-9. Instead I'd start this section something like:
Suggested change
Also, you rewrote the original lines 7-9 that started with "With the Dart plugin...", but then used that same structure here ("With the Dart extension..."). Is starting a sentence like that something that needs to be rewritten or not? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Eh, it could go either way. |
||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
1. Launch **VS Code**. | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
1. Click **Extensions** in the **Activity Bar**. | ||||||||||||||||||||||||||
You can also press | ||||||||||||||||||||||||||
<kbd>Control</kbd> / <kbd>Command</kbd> + | ||||||||||||||||||||||||||
<kbd>Shift</kbd> + <kbd>X</kbd>. | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
1. In the Search box, type `Dart`. | ||||||||||||||||||||||||||
The first extension returned should be the [Dart extension][]. | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
1. Click **Install**. | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
## Dart Extension documentation | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
To learn more about the features of the VS Code Dart extension, | ||||||||||||||||||||||||||
consult its [documentation][]. | ||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd remove this section in favor of just linking to the documentation in the intro of the previous section (the way I rewrote it) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of this section, why not point to the Flutter VS Code docs:
Suggested change
|
||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
[Dart extension]: https://marketplace.visualstudio.com/items?itemName=Dart-Code.dart-code | ||||||||||||||||||||||||||
[documentation]: https://dartcode.org/docs/ | ||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the Marketplace link is better because it lists all the pertinent information upfront. It also links to this page, so I think linking only to the Marketplace page is sufficient. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like you can remove this since you're not using it anymore |
||||||||||||||||||||||||||
[vs-code]: https://code.visualstudio.com/ | ||||||||||||||||||||||||||
[vscode-flutter]: {{site.flutter-docs}}/development/tools/vs-code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sentence seems unnecessary, repeats lines 7-9