Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to run .do files from Visual Studio

    Hello!
    I have just started to learn STATA (v. 12.1) and I want to use another editor than the build-in editor. I have tried to install Visual Studio and added the three extensions "Stata Enhanced", "Stata Language" and "Stata Run". However I cannot seem to find out how to run the .do file from within the Visual Studio. I have tried: StataRun: All lines" but nothing seems to happen. Can anyone explain what I am doing wrong?
    Last edited by Nanna Smedengaard; 04 Sep 2019, 06:10.

  • #2
    I have developed a new VS Code (and Cursor) extension that supports both Windows and MacOS systems. See https://github.com/hanlulong/stata-mcp. This extension provides Stata integration for Visual Studio Code and Cursor IDE using the Model Context Protocol (MCP). It allows you to:
    • Run Stata commands directly from VS Code or Cursor
    • Execute selections or entire .do files
    • View Stata output in the editor in real-time
    • Get AI assistant integration through the MCP protocol
    • Experience enhanced AI coding in Cursor IDE with Stata context
    Feedback is welcome.

    Comment

    Working...
    X