on master help sign in
Merge pull request #1415 from urbit/add-vscode-note

add note about line endings in vs code on windows

commitbc07cb4de6681cdfc03766a34514d203e8df7e62 authortinnus-napbus <77721746+tinnus-napbus@users.noreply.github.com> dateFri 22 Apr 2022, 03:19 (5 years ago) parent57c50dcdb33c7e
1 file changed+7−1
content/docs/hoon/hoon-school/list-of-numbers.md+7−1
content/docs/hoon/hoon-school/list-of-numbers.md+7−1
@@ -20,7 +20,13 @@ Below is a simple Hoon program that takes a single number `n` from the user as i
2020$(count (add 1 count)) :: 8
2121```
2222
23−As we mentioned in the previous lesson, the easiest way to use such a program is to run it as a _generator_. Mount your `%base` desk with `|mount %base` (if you didn't do it before), saving a file in the `base/gen` directory of your ship and commiting these changes `|commit %base` allows you to run it from your ship's Dojo (command line) as a generator. Save the above code there as `list.hoon`. Now you can run it in the Dojo with the command below (remember, without the `>`):
23+As we mentioned in the previous lesson, the easiest way to use such a program is to run it as a _generator_. Mount your `%base` desk with `|mount %base` (if you didn't do it before), saving a file in the `base/gen` directory of your ship and commiting these changes `|commit %base` allows you to run it from your ship's Dojo (command line) as a generator. Save the above code there as `list.hoon`.
24+
25+**Note**: If you're using VS Code on Windows, you might need to manually change
26+the line endings from CRLF to LF in the status bar at the bottom. Urbit requires
27+Unix-style line endings for Hoon files.
28+
29+Now you can run it in the Dojo with the command below (remember, without the `>`):
2430
2531`> +list 5`
2632