VSCode
settings.json
Section titled “settings.json”strg+shift+p: Einstellungen oder Preferences eingebensettings.jsonwird geöffnet- die Datei kann ebenfalls direkt geöffnet werden!
pingubib > .vscode > settings.json
- die Datei kann ebenfalls direkt geöffnet werden!
Snippets erstellen
Section titled “Snippets erstellen”strg+shift+p: Codeausschnitte oder Snippets eingebenmySnippets.code-snippetsauswählen und bearbeiten- die Datei kann auch direkt geöffnet werden!
pingubib > .vscode > mySnippets.code-snippets
- die Datei kann auch direkt geöffnet werden!
- oder irgendeine andere Möglichkeit auswählen, z.B.
json:
Inhalt der plaintext.json-Datei
Section titled “Inhalt der plaintext.json-Datei”Es gibt/gab eine plaintext.json-Datei (k.A. wo die jetzt liegt oder nicht liegt).
Text aus der Hugo-Doku: Die Datei kann offenbar nur einmal ausgewählt werden, die Inhalte können ohne weitere Hilfsmittel (kein IntelliSense o.ä.) getriggert werden. Eventuell wäre es besser, eine .code-snippets-Datei anzulegen; die Doku schweigt sich über plaintext.json aus.
{ // Place your snippets for plaintext here. Each snippet is defined under a snippet name and has a prefix, body and // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the // same ids are connected. // Example: // "Print to console": { // "prefix": "log", // "body": [ // "console.log('$1');", // "$2" // ], // "description": "Log output to console" // }
"parameters": { "prefix": "database", "body": [ "# This file has been auto-generated during installation", "parameters:", " database_host: localhost", " database_port: 3306", " database_user: root", " database_password: conTao4$", " database_name: $0xxx" ], "description": "Datenbankdaten für lokale Entwicklung" }, "smtp all-inkl.": { "prefix": "smtp all-inkl.", "body": [ "# Formularversand über SMTP", " mailer_transport: smtp", " mailer_host: $0xxx.kasserver.com", " mailer_user: x@xy.at", " mailer_password: xxxx", " mailer_port: 465", " mailer_encryption: ssl" ], "description": "SMTP-Daten für all-inkl." }, "smtp df": { "prefix": "smtp df", "body": [ "# Formularversand über SMTP", " mailer_transport: smtp", " mailer_host: sslout.df.eu", " mailer_user: $0x@xy.at", " mailer_password: xxx", " mailer_port: 465", " mailer_encryption: ssl" ], "description": "SMTP-Daten für df" }}