Adds a panel for accessing frequently used files, Internet addresses, programs, commands, snippets.
- Quick access to your favorite files
- Quick access to favorite URLs
- Fast launch of applications
- Quick access to your favorite files
- Quick access to favorite commands
- Setting icons for commands
The extension requires initial configuration. Edit the settings file VSCODE. If extension settings are not specified, demo settings will be used.
The extension settings are in section "favoritesPanel.commands": [] in the settings.json
"favoritesPanel.commands": [
{
"label": "README",
"description": "- read me",
"icon": "zap",
"command": "openFile",
"arguments": ["README.MD"]
}
]
List of available icons
{
"label": "lowercase ➜ UPPER CASE",
"description": "",
"icon": "debug-step-out",
"command": "runCommand",
"arguments": [
"editor.action.transformToUppercase"
]
}
Settings for opening file in project
{
"label": "README",
"description": "- read me",
"command": "openFile",
"arguments": ["README.MD"]
}
Settings for opening file in project
{
"label": "Hosts",
"description": "Windows hosts file",
"command": "openFile",
"arguments": ["C:\\Windows\\System32\\drivers\\etc\\hosts", "external"]
}
Settings for run program
{
"label": "Chrome",
"description": "Run Chrome",
"command": "run",
"arguments": ["start chrome"]
}
{
"label": "Windows",
"description": "",
"command": "run",
"arguments": ["start explorer /n, C:\\Windows"]
}
Settings for open URL
{
"label": "github.com",
"description": "",
"command": "runCommand",
"arguments": ["vscode.open", "https://github.com"],
}
Settings for running arbitrary commands
{
"label": "Zoom In",
"description": "",
"command": "runCommand",
"arguments": ["editor.action.fontZoomIn"],
}
command: workbench.action.findInFiles arguments:
- query?: string;
- isRegex?: boolean;
- triggerSearch?: boolean;
- filesToInclude?: string;
- filesToExclude?: string;
- isCaseSensitive?: boolean;
{
"label": "Find in files",
"description": "",
"command": "runCommand",
"arguments": ["workbench.action.findInFiles", {"query": "SearchPattern", "triggerSearch": true}],
},
Search and insert text by regexp pattern. Searches until the first match.
{
"label": "Replace",
"description": "",
"icon": "find-replace",
"command": "insertNewCode",
"arguments": ["ui/components/tableItem.ts", "<td className=\"col-date-time\">", "<div className=\"new\">NewText</div>", "before"],
}
Search and replace text by regexp pattern. Searches until the first match.
{
"label": "Replace",
"description": "",
"icon": "find-replace",
"command": "insertNewCode",
"arguments": ["ui/components/tableItem.ts", "<td className=\"col-date-time\">", "<div className=\"WOW\"></div>", "replace"]
}
Search and replace text by regexp pattern. Searches all match.
{
"label": "ReplaceAll",
"description": "",
"icon": "find-replace",
"command": "insertNewCode",
"arguments": ["ui/components/tableItem.ts", "<td className=\"col-date-time\">", "<div className=\"WOW\"></div>", "replaceALL"]
}
Copy this snippet of settings into settings.json file (VS Code settings file) to see the extension in action.
"favoritesPanel.commands": [
{
"label": "README",
"description": " - Important!",
"command": "openFile",
"arguments": ["README.MD"]
},
{
"label": "Hosts",
"description": "Windows hosts file",
"command": "openFile",
"arguments": ["C:\\Windows\\System32\\drivers\\etc\\hosts", "external"]
},
{
"label": "EDIT",
"commands": [
{
"label": "lowercase ➜ UPPER CASE",
"description": "",
"icon": "debug-step-out",
"command": "runCommand",
"arguments": [
"editor.action.transformToUppercase"
]
},
{
"label": "UPPER CASE ➜ lowercase",
"description": "",
"icon": "debug-step-into",
"command": "runCommand",
"arguments": [
"editor.action.transformToLowercase"
]
},
{
"label": "var ➜ prop={prop}",
"description": "",
"icon": "symbol-namespace",
"command": "runCommand",
"arguments": [
"editor.action.insertSnippet",
{
"snippet": "$TM_SELECTED_TEXT={$TM_SELECTED_TEXT}"
}
]
}
]
},
{
"label": "Chrome",
"description": "Run Chrome",
"icon": "browser",
"command": "run",
"arguments": ["start chrome"]
},
{
"label": "github.com",
"description": "",
"icon": "link-external",
"command": "runCommand",
"arguments": ["vscode.open", "https://github.com"]
},
{
"label": "Windows folder",
"description": "Open Windows folder",
"icon": "symbol-folder",
"command": "run",
"arguments": ["start explorer /n, C:\\Windows"]
},
{
"label": "Find in files",
"description": "",
"icon": "search",
"command": "runCommand",
"arguments": ["workbench.action.findInFiles", {"query": "SearchPannern", "triggerSearch": true}]
},
{
"label": "ZOOM",
"commands": [
{
"label": "Zoom In",
"description": "",
"icon": "zoom-in",
"command": "runCommand",
"arguments": ["editor.action.fontZoomIn"]
},
{
"label": "Zoom Out",
"description": "",
"icon": "zoom-out",
"command": "runCommand",
"arguments": ["editor.action.fontZoomOut"]
}
]
},
{
"label": "Insert",
"description": "",
"icon": "find-replace",
"command": "insertNewCode",
"arguments": ["ui/components/tableItem.ts", "<td className=\"col-date-time\">", "<div className=\"WOW\"></div>", "before"]
},
{
"label": "Replace",
"description": "",
"icon": "find-replace",
"command": "insertNewCode",
"arguments": ["package.json", "\"webpack\": \"node --max-old-space-size=4096", "\"webpack\": \"node --max-old-space-size=8192", "replace"]
},
{
"label": "Snippet ➜ console.log(*!!!* ➜)",
"description": "",
"icon": "code",
"command": "runCommand",
"arguments": [
"editor.action.insertSnippet",
{
"snippet": "console.log('***** !!! ***** ${1| ,this.props,this.state,props|} ----->', $1);"
}
]
}
]
- Added the replaceAll parameter of the favoritesPanel.insertNewCode command.
More information in the changelog