Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| lehrkraefte:sbt:informatik:glf22:python-environment [2023/08/17 22:36] – Karlheinz Schubert | lehrkraefte:sbt:informatik:glf22:python-environment [2023/08/17 22:40] (current) – Karlheinz Schubert | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ==== Anleitung (VisualStudio) code ==== | ||
| + | === Download und Installation === | ||
| + | |||
| + | * Download [[https:// | ||
| + | * Installation Code (normalerweise einfach Doppelklick und Anweisungen folgen) | ||
| + | * Die beiden Optionen "Add ... im Kontextmenü" | ||
| + | * Code gleich wieder schliessen | ||
| + | * Wechsel in das Informatik Projektverzeichnis (z.B. c: | ||
| + | * Betätigen, dass man dem Autor in diesem Verzeichnis vertraut: {{: | ||
| + | * Installation aller empfohlenen [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | |||
| + | === Vorschlag zu Code Extensions für das GLF Informatik === | ||
| + | |||
| + | Kopieren Sie das folgende File in das Verzeichnis '' | ||
| + | |||
| + | <code json extensions.json> | ||
| + | { | ||
| + | // See https:// | ||
| + | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp | ||
| + | // List of extensions which should be recommended for users of this workspace. | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ], | ||
| + | // List of extensions recommended by VS Code that should not be recommended for users of this workspace. | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ] | ||
| + | } | ||
| + | </ | ||
| + | Die vorgeschlagenen Erweiterungen stehen dann im Extension Pane unter < | ||
| + | |||
| + | <hidden Variante 2) Batchdatei zur automatischen Installation der Erweiterungen> | ||
| + | <code bash code-extensions.cmd> | ||
| + | @echo off | ||
| + | rem created with | ||
| + | rem code --list-extensions | % { "code --install-extension $_" } | ||
| + | rem | ||
| + | echo ------- Install code extensions for KSBG students ------------ | ||
| + | echo ------- documentation: | ||
| + | call code --install-extension James-Yu.latex-workshop --force | ||
| + | call code --install-extension zaaack.markdown-editor --force | ||
| + | call code --install-extension cweijan.vscode-office --force | ||
| + | |||
| + | echo ------- Python ----------------------------------------- | ||
| + | call code --install-extension ms-python.python --force | ||
| + | call code --install-extension ms-python.vscode-pylance --force | ||
| + | |||
| + | echo ------- ev3 lego roboter ------------------------------- | ||
| + | call code --install-extension lego-education.ev3-micropython --force | ||
| + | call code --install-extension ev3dev.ev3dev-browser --force | ||
| + | |||
| + | echo ------- html, js development --------------------------- | ||
| + | call code --install-extension firefox-devtools.vscode-firefox-debug --force | ||
| + | |||
| + | echo formatters | ||
| + | call code --install-extension lonefy.vscode-JS-CSS-HTML-formatter --force | ||
| + | call code --install-extension mechatroner.rainbow-csv --force | ||
| + | |||
| + | echo ======= Installed Extensions: ========================= | ||
| + | call code --list-extensions | ||
| + | echo ======================================================= | ||
| + | |||
| + | </ | ||
| + | |||
| + | <hidden Variante 3) Für Python-Fans: | ||
| + | <code python code-extensions.py> | ||
| + | """ | ||
| + | Install recommended code extensions for GLF at KSBG | ||
| + | """ | ||
| + | import os | ||
| + | import subprocess | ||
| + | |||
| + | results = [] | ||
| + | |||
| + | extensions = [ | ||
| + | # ------- documentation: | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | # ------- Python ----------------------------------------- | ||
| + | ' | ||
| + | ' | ||
| + | # ------- ev3 lego roboter ------------------------------- | ||
| + | ' | ||
| + | ' | ||
| + | # ------- html, js development --------------------------- | ||
| + | ' | ||
| + | # ------- formatters ------------------------------------- | ||
| + | ' | ||
| + | ' | ||
| + | ] | ||
| + | |||
| + | for ext in extensions: | ||
| + | result = subprocess.run( | ||
| + | [' | ||
| + | results.append( | ||
| + | f' | ||
| + | |||
| + | print(f' | ||
| + | for result in results: | ||
| + | print(result) | ||
| + | |||
| + | </ | ||
| + | </ | ||