Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Using Macaulay2 with VSCode

John Cobb edited this page May 21, 2026 · 3 revisions

Getting Started

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).

Getting a M2 Extension

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.

Getting Started

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.

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /