Using the Command Palette (CMD + SHIFT + P), open the option Preferences: Open User Settings (JSON):
"editor.codeActionsOnSave": {
"source.organizeImports": true,
"source.addMissingImports": true
},TypeScriptMeine Gedankenstütze ;-)
Using the Command Palette (CMD + SHIFT + P), open the option Preferences: Open User Settings (JSON):
"editor.codeActionsOnSave": {
"source.organizeImports": true,
"source.addMissingImports": true
},TypeScriptFix 1.
Entweder über die excludeFile Option
Fix 2 (Dieser Punkt ist entscheidend)
ODER nach search.useIgnoreFiles suchen in den Einstellungen und auf false setzen.
With $name or ${name:default}, you can insert the value of a variable. When a variable isn’t set, its default or the empty string is inserted. When a variable is unknown (that is, its name isn’t defined) the name of the variable is inserted and it is transformed into a placeholder.
The following variables can be used:
TM_SELECTED_TEXT The currently selected text or the empty stringTM_CURRENT_LINE The contents of the current lineTM_CURRENT_WORD The contents of the word under cursor or the empty stringTM_LINE_INDEX The zero-index based line numberTM_LINE_NUMBER The one-index based line numberTM_FILENAME The filename of the current documentTM_FILENAME_BASE The filename of the current document without its extensionsTM_DIRECTORY The directory of the current documentTM_FILEPATH The full file path of the current documentRELATIVE_FILEPATH The relative (to the opened workspace or folder) file path of the current documentCLIPBOARD The contents of your clipboardWORKSPACE_NAME The name of the opened workspace or folderWORKSPACE_FOLDER The path of the opened workspace or folderCURSOR_INDEX The zero-index based cursor numberCURSOR_NUMBER The one-index based cursor numberFor inserting the current date and time:
CURRENT_YEAR The current yearCURRENT_YEAR_SHORT The current year’s last two digitsCURRENT_MONTH The month as two digits (example ’02‘)CURRENT_MONTH_NAME The full name of the month (example ‚July‘)CURRENT_MONTH_NAME_SHORT The short name of the month (example ‚Jul‘)CURRENT_DATE The day of the month as two digits (example ’08‘)CURRENT_DAY_NAME The name of day (example ‚Monday‘)CURRENT_DAY_NAME_SHORT The short name of the day (example ‚Mon‘)CURRENT_HOUR The current hour in 24-hour clock formatCURRENT_MINUTE The current minute as two digitsCURRENT_SECOND The current second as two digitsCURRENT_SECONDS_UNIX The number of seconds since the Unix epochCURRENT_TIMEZONE_OFFSET The current UTC time zone offset as +HH:MM or -HH:MM (example -07:00).For inserting random values:
RANDOM 6 random Base-10 digitsRANDOM_HEX 6 random Base-16 digitsUUID A Version 4 UUIDFor inserting line or block comments, honoring the current language:
BLOCK_COMMENT_START Example output: in PHP /* or in HTML <!--BLOCK_COMMENT_END Example output: in PHP */ or in HTML -->LINE_COMMENT Example output: in PHP //// Place your settings in this file to overwrite the default settings
{
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"vscode_custom_css.imports": ["file:///Users/zamamoha/Desktop/styles.css"]
} Code-Sprache: JSON / JSON mit Kommentaren (json)
styles.css
.type.storage,.type.storage.declaration, .storage.class.modifier {
font-family: 'flottflott';
font-size: 1.7em;
}
.type.storage.arrow.function {
font-family: 'Fira Code'
}
.decorator.name, .decorator.punctuation:not(.block), .import.keyword {
font-family: 'flottflott';
font-size: 1.7em;
color: #68f39b!important;
}
.attribute-name {
font-family: 'flottflott';
font-size: 1.5em;
}
.html.quoted.double {
color: #a6f3a6!important;
}
.comment {
color: #c5c5fd!important;
}
.comment:not(.punctuation) {
font-family: flottflott;
font-size: 1.5em;
}Code-Sprache: CSS (css)
Quelle: https://medium.com/@zamamohammed/multiple-fonts-alternative-to-operator-mono-in-vscode-7745b52120a0
Über ⇧⌘P die Commandobar öffnen und Preferences: Configure Language Specific Settings… wählen
Folgendes Codesnippet einfügen:
"editor.codeActionsOnSave": {
"source.organizeImports": true
}Code-Sprache: JavaScript (javascript) In VSCode z.B. nach PHP-Dateien im Unterverzeichnis webroot rekursiv suchen.
./webroot/**/*.php