- msr + nin for file processing + data mining.
- vscode-msr for code mining + change code + alias for all terminals/IDEs.
- For clickable terminal in Visual Studio (like 2022), see ConEmu + VisualStudio integration.
- Alias Tools
- Save lifetime for frequently used tools and command lines - call the short alias/doskeys names.
- Write alias once and for all - for current + future vscode on Windows + Linux + MacOS plus Docker Containers in them.
- Optional: Turn on auto-sync settings for vscode is a great extra convenience to auto sync settings across machines.
Needless to always use/open vscode (with vscode-msr) - unless you changed/added new alias/doskeys.
- For normal aliases:
- Type update-alias to reload changes for old/existing terminals out-of vscode.
- For custom aliases (see difference to normal alias):
- Open vscode to auto update aliases, then type update-alias to reload changes for old/existing terminals out-of vscode.
- If your changes involve nested calling to other alias/doskeys:
- Open vscode and take 1 click to dump aliases to script files, then type update-alias to reload changes for old/existing terminals out-of vscode.
- Create alias:
- See Create Custom Alias and use to-alias-body to help transform multi-line alias body to one-line JSON.
- Find alias/doskeys details (command line):
- Use falias to find custom alias like falias update-vsc-alias , this will output 3 lines:
aliasName
+aliasBody
+description
.- Use grep-vsc like grep-vsc -t
falias
to find location in vscode settings.json to view or update.
- Use grep-vsc like grep-vsc -t
- Use alias/malias to find normal alias like alias
gpc
or maliasgph
or maliasgca
or maliasgca=
and etc.- Of-course, you can also find custom alias like alias gdm-ml without description info.
- Use falias to find custom alias like falias update-vsc-alias , this will output 3 lines:
- Update alias groups from another settings.json file:
- Use update-vsc-alias to update or merge 3 alias groups.
- Remove alias:
- Use rm-alias to remove alias + its script file (if dumped) like: rm-alias
{alias-name}
.
- Use rm-alias to remove alias + its script file (if dumped) like: rm-alias
-
Normal alias: Easy to write - See Cook Normal Alias for more guide/details.
-
Custom alias: Easy to sync - See Create Custom Alias for more guide/details especially use to-alias-body to:
- Help transforming multi-line alias body to one-line JSON.
- Help escaping special characters (including Windows path slashes) in alias body.
When you writing aliasBody like PowerShell -Command "{command lines body}"
(or pwsh -Command "xxx"
), follow these rules to avoid unexpected errors:
- Do not name a variable starting with
"b g l t"
(like$tableName
/$list
/ etc.) in the{command lines body}
to avoid doskeys conflict. - Be care of $1 / $2 conflicts with Regex replacement (capture group) in the
{command lines body}
.- Use msr -t
"matched (group)"
-o "matched \1" ... to fix conflict of $1 with \1.
- Use msr -t
- Try to use single quotes
'
instead of double quotes"
in the{command lines body}
.
Follow examples in custom-alias/settings.json to write aliasBody
with PowerShell, and don't forget to use to-alias-body to help transform command lines.
- You can manually install jq or by command line:
winget install jq
(built-in winget), orchoco install jq
(if you have Chocolatey).
- Type reload-env for any new tools (like jq) if you failed to found.
- Type add-user-path
{new-tool-folder}
if you still cannot find the new tool.