-
Notifications
You must be signed in to change notification settings - Fork 287
Using Macaulay2 with VSCode
Here are some hints about how to get started using Macaulay2 within VSCode. First of all, you should install both Macaulay2 and VSCode on the computer that you will bring with you to the workshop. The place to get Macaulay2 is here:
https://macaulay2.com/Downloads/
and the place to get VSCode is here:
https://code.visualstudio.com/download
Start VSCode and you see a window that looks like this: [画像:image]
It will offer various walkthroughs to get acquainted with VSCode. Perhaps the most important menu are the extensions: [画像:image]
Here, you can search the marketplace for various extensions that will make VSCode smarter. Some that I have installed are Github Copilot (an AI coding helper), Live Share (which allows Google doc style real time collaboration), and GitLens (which lets you view the history of a git repo easily).
Download the VSCode extension called Macaulay2 put out with publisher name Macaulay2:
[画像:image]After download, there is a short "Getting Started" page with the essential commands.
You can start a REPL with F12. You can send lines or a selection of code to the REPL with Shift+Enter or Control+Enter. In the keybinding settings, you may also choose to send your M2 code to the terminal directly instead.
In the settings, you may change the visual theme and output mode, start up arguments, and set different Macaulay2 binaries.