You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Open VS Code, go to <strong>File → Open Folder</strong>and select your <code>MySketch</code> folder. Open the integrated terminal with <code>Ctrl+`</code> and switch it to <strong>MSYS2 / MinGW64</strong> using the dropdown arrow next to the <code>+</code>.</p>
137
+
<divclass="warning-box"><strong>Important:</strong> Use the MinGW64 terminal, not PowerShell. The prompt should say MINGW64.</div>
Copy file name to clipboardExpand all lines: downloads/dragdrop_setup.html
+9-14Lines changed: 9 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -126,15 +126,11 @@ <h2>Step 4 Write your sketch</h2>
126
126
Everything in the <aclass="ref-link" href="/reference">reference</a> works the same way.
127
127
</p>
128
128
129
-
<h2>Step 5 Open the right terminal</h2>
130
-
<p>Click Start and search for<strong>MSYS2 MinGW 64-bit</strong>. Open it. The prompt or title bar should say <code>MINGW64</code>.</p>
131
-
<divclass="warning-box"><strong>Important:</strong>Do NOT use PowerShell or Command Prompt. They don't have <code>g++</code> and the build will fail immediately. It has to be MSYS2 MinGW 64-bit.</div>
129
+
<h2>Step 5 Open VS Code and the terminal</h2>
130
+
<p>Open VS Code, go to<strong>File → Open Folder</strong> and select your <code>MySketch</code> folder. Then open the integrated terminal with <code>Ctrl+`</code>.</p>
131
+
<divclass="warning-box"><strong>Important:</strong>The default terminal in VS Code on Windows is PowerShell, which doesn't have <code>g++</code>. Click the dropdown arrow next to the <code>+</code> in the terminal panel and select <strong>MSYS2 / MinGW64</strong> instead. The prompt should say <code>MINGW64</code>.</div>
<p>Replace <code>YourName</code> and <code>Desktop</code> with wherever you actually saved the folder.</p>
136
-
137
-
<h2>Step 7 Run it</h2>
133
+
<h2>Step 6 Run it</h2>
138
134
<pre><code>./processing-cpp/run.bat</code></pre>
139
135
<p>The first run takes about 15 seconds because it's compiling the engine. After that a window opens with an orange circle that follows your mouse. Every run after the first is much faster since the engine is already built.</p>
<h2>Steps 2-4 Get the package and write your sketch</h2>
162
158
<p>Same as Windows: download <strong>processing-cpp-dragdrop.zip</strong>, rename the extracted folder to <code>processing-cpp</code>, create a <code>MySketch</code> folder, and write <code>main.cpp</code> with the same code as above inside it.</p>
163
159
164
-
<h2>Step 5 Navigate to your project</h2>
165
-
<pre><code>cd ~/Desktop/MySketch</code></pre>
160
+
<h2>Step 5 Open VS Code and the terminal</h2>
161
+
<p>Open VS Code, go to <strong>File → Open Folder</strong> and select your <code>MySketch</code> folder. Open the integrated terminal with <code>Ctrl+`</code> (or <code>Cmd+`</code> on macOS).</p>
166
162
167
163
<h2>Step 6 Run it</h2>
168
164
<pre><code>./processing-cpp/run.sh</code></pre>
@@ -192,10 +188,9 @@ <h2>Steps 2 onwards same as macOS</h2>
192
188
</div>
193
189
194
190
<divclass="next-steps">
195
-
<ahref="/downloads/cmake-setup.html">Prefer CMake? See the CMake setup →</a>
196
-
<ahref="/downloads/vscode.html">Using VS Code? →</a>
197
-
<ahref="/reference">Browse the reference →</a>
198
-
<ahref="/examples">See more examples →</a>
191
+
<ahref="/downloads/cmake-setup.html">Prefer CMake? See the CMake setup →</a>
0 commit comments