├── LICENSE └── README.md /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Hans Alemão 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # tutorial_vs_code 2 | 3 | 4 | [![YT](https://i.ytimg.com/vi/q4XqnLR2OBM/maxresdefault.jpg)](https://www.youtube.com/watch?v=q4XqnLR2OBM) 5 | [https://www.youtube.com/watch?v=q4XqnLR2OBM]() 6 | 7 | ### change restrictions 8 | ``` 9 | Get-ExecutionPolicy 10 | 11 | :: dangerous 12 | Set-ExecutionPolicy unrestricted 13 | 14 | :: to revert 15 | Set-ExecutionPolicy restricted 16 | ``` 17 | 18 | ## disable admin check 19 | 20 | ``` 21 | # dangerous 22 | reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f 23 | 24 | # to revert 25 | reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f 26 | ``` 27 | 28 | ## activation script 29 | https://github.com/massgravel/Microsoft-Activation-Scripts 30 | ``` 31 | irm https://massgrave.dev/get | iex 32 | 33 | ``` 34 | 35 | ## install vtm 36 | ``` 37 | https://github.com/directvt/vtm 38 | vtm --install 39 | ``` 40 | ## wget (if not installed yet) 41 | ``` 42 | https://gnuwin32.sourceforge.net/packages/wget.htm 43 | ``` 44 | 45 | ## create github account 46 | ``` 47 | app for double auth: 48 | https://play.google.com/store/apps/details?id=com.authy.authy&hl=en&pli=1 49 | ``` 50 | 51 | ## install anaconda (add to path and all users) 52 | ``` 53 | https://www.anaconda.com/download 54 | ``` 55 | 56 | ## install Visual Studio 57 | ``` 58 | { 59 | "version": "1.0", 60 | "components": [ 61 | "Microsoft.VisualStudio.Component.CoreEditor", 62 | "Microsoft.VisualStudio.Workload.CoreEditor", 63 | "Microsoft.VisualStudio.Component.Roslyn.Compiler", 64 | "Microsoft.Component.MSBuild", 65 | "Microsoft.VisualStudio.Component.TextTemplating", 66 | "Microsoft.VisualStudio.Component.Debugger.JustInTime", 67 | "Microsoft.VisualStudio.Component.VC.CoreIde", 68 | "Microsoft.VisualStudio.Component.VC.Tools.x86.x64", 69 | "Microsoft.VisualStudio.Component.Graphics.Tools", 70 | "Microsoft.VisualStudio.Component.VC.DiagnosticTools", 71 | "Microsoft.VisualStudio.Component.VC.ATL", 72 | "Microsoft.VisualStudio.Component.SecurityIssueAnalysis", 73 | "Microsoft.VisualStudio.Component.VC.Redist.14.Latest", 74 | "Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core", 75 | "Microsoft.VisualStudio.ComponentGroup.WebToolsExtensions.CMake", 76 | "Microsoft.VisualStudio.Component.VC.CMake.Project", 77 | "Microsoft.VisualStudio.Component.Vcpkg", 78 | "Microsoft.VisualStudio.Component.Windows10SDK.20348", 79 | "Microsoft.VisualStudio.Workload.NativeDesktop" 80 | ] 81 | } 82 | ``` 83 | 84 | 85 | ### install in base 86 | ``` 87 | pip install jedi black ruff ipython ripgreppythonfiles --user 88 | ``` 89 | 90 | ## choco 91 | 92 | https://community.chocolatey.org/ 93 | ``` 94 | ### install choco 95 | 96 | Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) 97 | ``` 98 | 99 | 100 | ## install choco packages (powershell admin!!) 101 | 102 | Pieces https://builds.pieces.app/stages/production/pieces_suite_windows/appinstaller/download 103 | 104 | ``` 105 | choco upgrade vscode sysinternals mingw cmake.install llvm zig visualstudio2022buildtools advanced-bat-to-exe-converter conan boost-msvc-14.3 vscode-pylance ripgrep fzf zoxide smartftp fd git.install nodejs.install wget nodejs jdk8 putty.install microsoft-windows-terminal curl make dotnetcore dotnet-sdk vcredist140 rust-ms netfx-4.7.2 ripgrep-all clink-maintained conemu shellcheck shfmt lua bat --yes --accept-license --allow-unofficial 106 | ``` 107 | 108 | 109 | ## useful extras 110 | 111 | ``` 112 | choco upgrade powertoys dxwnd exiftool dnsproxy winscp cppcheck --yes --accept-license --allow-unofficial 113 | https://sourceforge.net/projects/clip-angel/ 114 | ``` 115 | 116 | ## mysys64 117 | ``` 118 | https://www.msys2.org/ 119 | ``` 120 | 121 | ## copy path 122 | ``` 123 | Windows Registry Editor Version 5.00 124 | 125 | ; Created by: Shawn Brink 126 | ; Created on: December 30th 2016 127 | ; Modified on: November 27th 2017 128 | ; Tutorial: https://www.tenforums.com/tutorials/73649-copy-path-add-context-menu-windows-10-a.html 129 | 130 | 131 | [HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\windows.copyaspath] 132 | "CanonicalName"="{707C7BC6-685A-4A4D-A275-3966A5A3EFAA}" 133 | "CommandStateHandler"="{3B1599F9-E00A-4BBF-AD3E-B3F99FA87779}" 134 | "CommandStateSync"="" 135 | "Description"="@shell32.dll,-30336" 136 | "Icon"="imageres.dll,-5302" 137 | "InvokeCommandOnSelection"=dword:00000001 138 | "MUIVerb"="Copy Full Path" 139 | "VerbHandler"="{f3d06e7c-1e45-4a26-847e-f9fcdee59be0}" 140 | "VerbName"="copyaspath" 141 | 142 | [HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\CopyAsPathMenu] 143 | @="{f3d06e7c-1e45-4a26-847e-f9fcdee59be0}" 144 | 145 | ``` 146 | 147 | ## theme 148 | ``` 149 | https://marketplace.visualstudio.com/items?itemName=hiteshchoudharycode.chai-theme 150 | ``` 151 | 152 | ## extensions 153 | 154 | ``` 155 | code --install-extension aaron-bond.better-comments --install-extension adrianwilczynski.terminal-commands --install-extension albymor.increment-selection --install-extension alefragnani.bookmarks --install-extension antiantisepticeye.vscode-color-picker --install-extension artdiniz.quitcontrol-vscode --install-extension beaglefoot.awk-ide-vscode --install-extension benjamin-simmonds.pythoncpp-debug --install-extension bierner.markdown-preview-github-styles --install-extension charliermarsh.ruff --install-extension chunsen.bracket-select --install-extension clemenspeters.format-json --install-extension cliffordfajardo.highlight-line-vscode --install-extension cmstead.js-codeformer --install-extension codeium.codeium --install-extension davidkol.fastcompare --install-extension dk189.vscode-files-explorer --install-extension dracula-theme.theme-dracula --install-extension edgardmessias.clipboard-manager --install-extension exodiusstudios.comment-anchors --install-extension foxundermoon.shell-format --install-extension franneck94.vscode-cpython-extension-pack --install-extension github.codespaces --install-extension gruntfuggly.activitusbar --install-extension guiextensions.tosingleline --install-extension guyskk.language-cython --install-extension hangxingliu.vscode-awk-hint --install-extension jakobilee.file-organizer --install-extension jinsihou.diff-tool --install-extension johnpapa.vscode-peacock --install-extension kisstkondoros.vscode-gutter-preview --install-extension ktnrg45.vscode-cython --install-extension l13rary.l13-diff --install-extension llvm-vs-code-extensions.vscode-clangd --install-extension luggage66.awk --install-extension mads-hartmann.bash-ide-vscode --install-extension mechatroner.rainbow-csv --install-extension mgesbert.indent-nested-dictionary --install-extension micnil.vscode-checkpoints --install-extension ms-python.debugpy --install-extension ms-python.python --install-extension ms-vscode.cpptools --install-extension naumovs.color-highlight --install-extension nick-rudenko.back-n-forth --install-extension oderwat.indent-rainbow --install-extension peterschmalfeldt.explorer-exclude --install-extension petli-full.awk-vscode --install-extension pkief.material-icon-theme --install-extension qcz.text-power-tools --install-extension qwtel.sqlite-viewer --install-extension roscop.activefileinstatusbar --install-extension ryu1kn.text-marker --install-extension sergeyegorov.folder-color --install-extension shardulm94.trailing-spaces --install-extension sleistner.vscode-fileutils --install-extension stackspotai.stackspotai --install-extension stkb.rewrap --install-extension tcwalther.cython --install-extension timonwong.shellcheck --install-extension tldraw-org.tldraw-vscode --install-extension tomoki1207.pdf --install-extension tomoki1207.vscode-input-sequence --install-extension tyriar.luna-paint --install-extension tyriar.sort-lines --install-extension usernamehw.indent-one-space --install-extension visualstudioexptteam.intellicode-api-usage-examples --install-extension visualstudioexptteam.vscodeintellicode --install-extension vscjava.vscode-java-debug --install-extension vscjava.vscode-java-dependency --install-extension vscjava.vscode-java-pack --install-extension vscjava.vscode-maven --install-extension vsls-contrib.gistfs --install-extension wscats.command-runner --install-extension yutengjing.open-in-external-app --install-extension yutengjing.vscode-archive 156 | 157 | ``` 158 | 159 | ## touch.bat (windows folder) 160 | ``` 161 | type nul >>%1 & copy %1 +,, 162 | ``` 163 | 164 | ## Windows Terminal 165 | ``` 166 | { 167 | "$help": "https://aka.ms/terminal-documentation", 168 | "$schema": "https://aka.ms/terminal-profiles-schema", 169 | "actions": 170 | [ 171 | { 172 | "command": 173 | { 174 | "action": "copy", 175 | "singleLine": false 176 | }, 177 | "keys": "ctrl+c" 178 | }, 179 | { 180 | "command": "paste", 181 | "keys": "ctrl+v" 182 | }, 183 | { 184 | "command": 185 | { 186 | "action": "splitPane", 187 | "split": "auto", 188 | "splitMode": "duplicate" 189 | }, 190 | "keys": "alt+shift+d" 191 | }, 192 | { 193 | "command": "find", 194 | "keys": "ctrl+shift+f" 195 | }, 196 | { 197 | "command": "selectAll", 198 | "keys": "ctrl+a" 199 | } 200 | ], 201 | "alwaysShowNotificationIcon": true, 202 | "copyFormatting": "none", 203 | "copyOnSelect": false, 204 | "defaultProfile": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", 205 | "disableAnimations": true, 206 | "experimental.rendering.forceFullRepaint": false, 207 | "firstWindowPreference": "defaultProfile", 208 | "focusFollowMouse": false, 209 | "initialCols": 50000, 210 | "initialPosition": "0,0", 211 | "language": "en-US", 212 | "launchMode": "default", 213 | "newTabMenu": 214 | [ 215 | { 216 | "type": "remainingProfiles" 217 | } 218 | ], 219 | "profiles": 220 | { 221 | "defaults": 222 | { 223 | "elevate": true, 224 | "useAtlasEngine": true 225 | }, 226 | "list": 227 | [ 228 | { 229 | "commandline": "%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", 230 | "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", 231 | "hidden": false, 232 | "name": "Windows PowerShell", 233 | "scrollbarState": "always" 234 | }, 235 | { 236 | "adjustIndistinguishableColors": "always", 237 | "bellStyle": "window", 238 | "closeOnExit": "never", 239 | "commandline": "%SystemRoot%\\System32\\cmd.exe", 240 | "experimental.retroTerminalEffect": false, 241 | "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", 242 | "hidden": false, 243 | "historySize": 999999, 244 | "name": "cmd", 245 | "padding": "0" 246 | }, 247 | { 248 | "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}", 249 | "hidden": false, 250 | "name": "Azure Cloud Shell", 251 | "source": "Windows.Terminal.Azure" 252 | }, 253 | { 254 | "guid": "{17bf3de4-5353-5709-bcf9-835bd952a95e}", 255 | "hidden": true, 256 | "name": "Ubuntu-22.04", 257 | "source": "Windows.Terminal.Wsl" 258 | }, 259 | { 260 | "guid": "{d7b20cea-47a9-518c-95a4-c8bd91e2e1c6}", 261 | "hidden": false, 262 | "name": "Ubuntu 22.04.2 LTS", 263 | "source": "CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc" 264 | }, 265 | { 266 | "guid": "{1d8daa44-ce56-58bc-9550-917fa9575f44}", 267 | "hidden": false, 268 | "name": "Developer Command Prompt for VS 2022", 269 | "source": "Windows.Terminal.VisualStudio" 270 | }, 271 | { 272 | "guid": "{cce05000-698c-59a2-825d-a001c07d8cde}", 273 | "hidden": false, 274 | "name": "Developer PowerShell for VS 2022", 275 | "source": "Windows.Terminal.VisualStudio" 276 | } 277 | ] 278 | }, 279 | "schemes": 280 | [ 281 | { 282 | "background": "#0C0C0C", 283 | "black": "#0C0C0C", 284 | "blue": "#0037DA", 285 | "brightBlack": "#767676", 286 | "brightBlue": "#3B78FF", 287 | "brightCyan": "#61D6D6", 288 | "brightGreen": "#16C60C", 289 | "brightPurple": "#B4009E", 290 | "brightRed": "#E74856", 291 | "brightWhite": "#F2F2F2", 292 | "brightYellow": "#F9F1A5", 293 | "cursorColor": "#FFFFFF", 294 | "cyan": "#3A96DD", 295 | "foreground": "#CCCCCC", 296 | "green": "#13A10E", 297 | "name": "Campbell", 298 | "purple": "#881798", 299 | "red": "#C50F1F", 300 | "selectionBackground": "#FFFFFF", 301 | "white": "#CCCCCC", 302 | "yellow": "#C19C00" 303 | }, 304 | { 305 | "background": "#012456", 306 | "black": "#0C0C0C", 307 | "blue": "#0037DA", 308 | "brightBlack": "#767676", 309 | "brightBlue": "#3B78FF", 310 | "brightCyan": "#61D6D6", 311 | "brightGreen": "#16C60C", 312 | "brightPurple": "#B4009E", 313 | "brightRed": "#E74856", 314 | "brightWhite": "#F2F2F2", 315 | "brightYellow": "#F9F1A5", 316 | "cursorColor": "#FFFFFF", 317 | "cyan": "#3A96DD", 318 | "foreground": "#CCCCCC", 319 | "green": "#13A10E", 320 | "name": "Campbell Powershell", 321 | "purple": "#881798", 322 | "red": "#C50F1F", 323 | "selectionBackground": "#FFFFFF", 324 | "white": "#CCCCCC", 325 | "yellow": "#C19C00" 326 | }, 327 | { 328 | "background": "#282C34", 329 | "black": "#282C34", 330 | "blue": "#61AFEF", 331 | "brightBlack": "#5A6374", 332 | "brightBlue": "#61AFEF", 333 | "brightCyan": "#56B6C2", 334 | "brightGreen": "#98C379", 335 | "brightPurple": "#C678DD", 336 | "brightRed": "#E06C75", 337 | "brightWhite": "#DCDFE4", 338 | "brightYellow": "#E5C07B", 339 | "cursorColor": "#FFFFFF", 340 | "cyan": "#56B6C2", 341 | "foreground": "#DCDFE4", 342 | "green": "#98C379", 343 | "name": "One Half Dark", 344 | "purple": "#C678DD", 345 | "red": "#E06C75", 346 | "selectionBackground": "#FFFFFF", 347 | "white": "#DCDFE4", 348 | "yellow": "#E5C07B" 349 | }, 350 | { 351 | "background": "#FAFAFA", 352 | "black": "#383A42", 353 | "blue": "#0184BC", 354 | "brightBlack": "#4F525D", 355 | "brightBlue": "#61AFEF", 356 | "brightCyan": "#56B5C1", 357 | "brightGreen": "#98C379", 358 | "brightPurple": "#C577DD", 359 | "brightRed": "#DF6C75", 360 | "brightWhite": "#FFFFFF", 361 | "brightYellow": "#E4C07A", 362 | "cursorColor": "#4F525D", 363 | "cyan": "#0997B3", 364 | "foreground": "#383A42", 365 | "green": "#50A14F", 366 | "name": "One Half Light", 367 | "purple": "#A626A4", 368 | "red": "#E45649", 369 | "selectionBackground": "#4F525D", 370 | "white": "#FAFAFA", 371 | "yellow": "#C18301" 372 | }, 373 | { 374 | "background": "#002B36", 375 | "black": "#002B36", 376 | "blue": "#268BD2", 377 | "brightBlack": "#073642", 378 | "brightBlue": "#839496", 379 | "brightCyan": "#93A1A1", 380 | "brightGreen": "#586E75", 381 | "brightPurple": "#6C71C4", 382 | "brightRed": "#CB4B16", 383 | "brightWhite": "#FDF6E3", 384 | "brightYellow": "#657B83", 385 | "cursorColor": "#FFFFFF", 386 | "cyan": "#2AA198", 387 | "foreground": "#839496", 388 | "green": "#859900", 389 | "name": "Solarized Dark", 390 | "purple": "#D33682", 391 | "red": "#DC322F", 392 | "selectionBackground": "#FFFFFF", 393 | "white": "#EEE8D5", 394 | "yellow": "#B58900" 395 | }, 396 | { 397 | "background": "#FDF6E3", 398 | "black": "#002B36", 399 | "blue": "#268BD2", 400 | "brightBlack": "#073642", 401 | "brightBlue": "#839496", 402 | "brightCyan": "#93A1A1", 403 | "brightGreen": "#586E75", 404 | "brightPurple": "#6C71C4", 405 | "brightRed": "#CB4B16", 406 | "brightWhite": "#FDF6E3", 407 | "brightYellow": "#657B83", 408 | "cursorColor": "#002B36", 409 | "cyan": "#2AA198", 410 | "foreground": "#657B83", 411 | "green": "#859900", 412 | "name": "Solarized Light", 413 | "purple": "#D33682", 414 | "red": "#DC322F", 415 | "selectionBackground": "#073642", 416 | "white": "#EEE8D5", 417 | "yellow": "#B58900" 418 | }, 419 | { 420 | "background": "#000000", 421 | "black": "#000000", 422 | "blue": "#3465A4", 423 | "brightBlack": "#555753", 424 | "brightBlue": "#729FCF", 425 | "brightCyan": "#34E2E2", 426 | "brightGreen": "#8AE234", 427 | "brightPurple": "#AD7FA8", 428 | "brightRed": "#EF2929", 429 | "brightWhite": "#EEEEEC", 430 | "brightYellow": "#FCE94F", 431 | "cursorColor": "#FFFFFF", 432 | "cyan": "#06989A", 433 | "foreground": "#D3D7CF", 434 | "green": "#4E9A06", 435 | "name": "Tango Dark", 436 | "purple": "#75507B", 437 | "red": "#CC0000", 438 | "selectionBackground": "#FFFFFF", 439 | "white": "#D3D7CF", 440 | "yellow": "#C4A000" 441 | }, 442 | { 443 | "background": "#FFFFFF", 444 | "black": "#000000", 445 | "blue": "#3465A4", 446 | "brightBlack": "#555753", 447 | "brightBlue": "#729FCF", 448 | "brightCyan": "#34E2E2", 449 | "brightGreen": "#8AE234", 450 | "brightPurple": "#AD7FA8", 451 | "brightRed": "#EF2929", 452 | "brightWhite": "#EEEEEC", 453 | "brightYellow": "#FCE94F", 454 | "cursorColor": "#000000", 455 | "cyan": "#06989A", 456 | "foreground": "#555753", 457 | "green": "#4E9A06", 458 | "name": "Tango Light", 459 | "purple": "#75507B", 460 | "red": "#CC0000", 461 | "selectionBackground": "#555753", 462 | "white": "#D3D7CF", 463 | "yellow": "#C4A000" 464 | }, 465 | { 466 | "background": "#300A24", 467 | "black": "#171421", 468 | "blue": "#0037DA", 469 | "brightBlack": "#767676", 470 | "brightBlue": "#08458F", 471 | "brightCyan": "#2C9FB3", 472 | "brightGreen": "#26A269", 473 | "brightPurple": "#A347BA", 474 | "brightRed": "#C01C28", 475 | "brightWhite": "#F2F2F2", 476 | "brightYellow": "#A2734C", 477 | "cursorColor": "#FFFFFF", 478 | "cyan": "#3A96DD", 479 | "foreground": "#FFFFFF", 480 | "green": "#26A269", 481 | "name": "Ubuntu-22.04-ColorScheme", 482 | "purple": "#881798", 483 | "red": "#C21A23", 484 | "selectionBackground": "#FFFFFF", 485 | "white": "#CCCCCC", 486 | "yellow": "#A2734C" 487 | }, 488 | { 489 | "background": "#000000", 490 | "black": "#000000", 491 | "blue": "#000080", 492 | "brightBlack": "#808080", 493 | "brightBlue": "#0000FF", 494 | "brightCyan": "#00FFFF", 495 | "brightGreen": "#00FF00", 496 | "brightPurple": "#FF00FF", 497 | "brightRed": "#FF0000", 498 | "brightWhite": "#FFFFFF", 499 | "brightYellow": "#FFFF00", 500 | "cursorColor": "#FFFFFF", 501 | "cyan": "#008080", 502 | "foreground": "#C0C0C0", 503 | "green": "#008000", 504 | "name": "Vintage", 505 | "purple": "#800080", 506 | "red": "#800000", 507 | "selectionBackground": "#FFFFFF", 508 | "white": "#C0C0C0", 509 | "yellow": "#808000" 510 | } 511 | ], 512 | "showTabsInTitlebar": true, 513 | "startOnUserLogin": false, 514 | "tabWidthMode": "equal", 515 | "themes": [], 516 | "windowingBehavior": "useExisting", 517 | "wordDelimiters": null 518 | } 519 | ``` 520 | 521 | ## vs code config 522 | ``` 523 | { 524 | "code-runner.runInTerminal": true, 525 | "editor.autoClosingBrackets": "always", 526 | "editor.bracketPairColorization.independentColorPoolPerBracketType": true, 527 | "cmake.showOptionsMovedNotification": false, 528 | "workbench.startupEditor": "none", 529 | "terminal.explorerKind": "external", 530 | "python.terminal.activateEnvironment": false, 531 | "terminal.integrated.gpuAcceleration": "on", 532 | "terminal.integrated.scrollback": 1000000, 533 | "accessibility.verbosity.terminal": false, 534 | "accessibility.dimUnfocused.opacity": 1, 535 | "terminal.integrated.accessibleViewFocusOnCommandExecution": true, 536 | "terminal.integrated.accessibleViewPreserveCursorPosition": true, 537 | "terminal.external.windowsExec": "C:\\Program Files\\WindowsApps\\Microsoft.WindowsTerminal_1.18.3181.0_x64__8wekyb3d8bbwe\\WindowsTerminal.exe", 538 | "editor.accessibilityPageSize": 1, 539 | "editor.accessibilitySupport": "off", 540 | "editor.definitionLinkOpensInPeek": true, 541 | "editor.emptySelectionClipboard": false, 542 | "editor.experimentalWhitespaceRendering": "off", 543 | "editor.fastScrollSensitivity": 4, 544 | "editor.foldingMaximumRegions": 500, 545 | "editor.gotoLocation.alternativeTypeDefinitionCommand": "editor.action.goToImplementation", 546 | "editor.gotoLocation.multipleDeclarations": "gotoAndPeek", 547 | "editor.guides.bracketPairs": true, 548 | "editor.inlayHints.padding": true, 549 | "editor.mouseWheelScrollSensitivity": 1.1, 550 | "editor.multiCursorLimit": 50000, 551 | "editor.padding.bottom": 1, 552 | "editor.padding.top": 1, 553 | "editor.tabCompletion": "on", 554 | "editor.stickyTabStops": true, 555 | "editor.unfoldOnClickAfterEndOfLine": true, 556 | "editor.unicodeHighlight.nonBasicASCII": false, 557 | "editor.wrappingIndent": "indent", 558 | "editor.fontWeight": "normal", 559 | "editor.formatOnPaste": true, 560 | "diffEditor.experimental.showMoves": true, 561 | "diffEditor.hideUnchangedRegions.enabled": true, 562 | "diffEditor.hideUnchangedRegions.minimumLineCount": 1, 563 | "diffEditor.maxComputationTime": 0, 564 | "diffEditor.maxFileSize": 0, 565 | "multiDiffEditor.experimental.enabled": true, 566 | "editor.minimap.scale": 1, 567 | "editor.inlineSuggest.showToolbar": "always", 568 | "editor.quickSuggestions": { 569 | "other": "on", 570 | "comments": "on", 571 | "strings": "on" 572 | }, 573 | "editor.quickSuggestionsDelay": 3, 574 | "editor.screenReaderAnnounceInlineSuggestion": false, 575 | "editor.suggest.filterGraceful": false, 576 | "editor.suggest.matchOnWordStartOnly": false, 577 | "editor.suggest.preview": true, 578 | "editor.suggest.shareSuggestSelections": true, 579 | "editor.suggestSelection": "first", 580 | "files.autoGuessEncoding": true, 581 | "files.defaultLanguage": "Python", 582 | "files.hotExit": "off", 583 | "files.participants.timeout": 0, 584 | "files.readonlyFromPermissions": true, 585 | "files.simpleDialog.enable": true, 586 | "workbench.commandPalette.experimental.suggestCommands": true, 587 | "workbench.commandPalette.history": 50000, 588 | "workbench.commandPalette.preserveInput": true, 589 | "workbench.enableExperiments": false, 590 | "workbench.experimental.share.enabled": true, 591 | "workbench.list.fastScrollSensitivity": 6, 592 | "workbench.list.scrollByPage": true, 593 | "workbench.list.smoothScrolling": true, 594 | "workbench.localHistory.maxFileEntries": 5000, 595 | "workbench.localHistory.maxFileSize": 8192, 596 | "workbench.reduceMotion": "on", 597 | "workbench.tips.enabled": false, 598 | "workbench.tree.enableStickyScroll": true, 599 | "workbench.editor.autoLockGroups": { 600 | "terminalEditor": false 601 | }, 602 | "workbench.editor.limit.enabled": false, 603 | "workbench.settings.enableNaturalLanguageSearch": false, 604 | "workbench.editor.wrapTabs": true, 605 | "workbench.editor.limit.value": 10000, 606 | "workbench.editor.pinnedTabsOnSeparateRow": true, 607 | "workbench.editor.sharedViewState": true, 608 | "window.enableMenuBarMnemonics": false, 609 | "window.restoreFullscreen": true, 610 | "accessibility.dimUnfocused.enabled": true, 611 | "search.experimental.quickAccess.preserveInput": true, 612 | "search.searchEditor.reusePriorSearchConfiguration": true, 613 | "search.seedWithNearestWord": true, 614 | "search.showLineNumbers": true, 615 | "search.smartCase": true, 616 | "search.useGlobalIgnoreFiles": true, 617 | "debug.allowBreakpointsEverywhere": true, 618 | "debug.autoExpandLazyVariables": true, 619 | "debug.console.closeOnEnd": true, 620 | "debug.inlineValues": "on", 621 | "scm.alwaysShowRepositories": true, 622 | "scm.inputMaxLines": 50, 623 | "terminal.integrated.allowMnemonics": false, 624 | "terminal.integrated.autoReplies": { 625 | "Terminate batch job (Y/N)": "Y\r" 626 | }, 627 | "terminal.integrated.confirmOnKill": "never", 628 | "terminal.integrated.copyOnSelection": false, 629 | "terminal.integrated.cursorBlinking": true, 630 | "terminal.integrated.cursorStyleInactive": "block", 631 | "terminal.integrated.defaultLocation": "editor", 632 | "terminal.integrated.defaultProfile.windows": "Command Prompt", 633 | "terminal.integrated.ignoreBracketedPasteMode": true, 634 | "terminal.integrated.windowsEnableConpty": true, 635 | "accessibility.hideAccessibleView": true, 636 | "security.workspace.trust.untrustedFiles": "open", 637 | "pieces.setCopilotLocation": true, 638 | "[python]": { 639 | "editor.defaultFormatter": "charliermarsh.ruff" 640 | }, 641 | "workbench.iconTheme": "material-icon-theme", 642 | "C_Cpp.intelliSenseEngine": "disabled", 643 | "bookmarks.useWorkaroundForFormatters": true, 644 | "ruff.showNotifications": "always", 645 | "ruff.trace.server": "verbose", 646 | "ruff.ignoreStandardLibrary": false, 647 | "python.analysis.userFileIndexingLimit": -1, 648 | "python.analysis.autoImportCompletions": true, 649 | "bookmarks.keepBookmarksOnLineDelete": true, 650 | "bookmarks.sideBar.expanded": true, 651 | "python.analysis.enablePytestSupport": false, 652 | "python.analysis.gotoDefinitionInStringLiteral": true, 653 | "clangd.checkUpdates": true, 654 | "clangd.path": "c:\\Users\\hansc\\AppData\\Roaming\\Code\\User\\globalStorage\\llvm-vs-code-extensions.vscode-clangd\\install\\17.0.3\\clangd_17.0.3\\bin\\clangd.exe", 655 | "python.analysis.completeFunctionParens": true, 656 | "bashIde.shellcheckPath": "C:\\ProgramData\\chocolatey\\bin\\shellcheck.exe", 657 | "codeium.enableConfig": { 658 | "*": true 659 | }, 660 | "checkpoints.addCheckpointOnSave": true, 661 | "checkpoints.locale": "pt-BR", 662 | "rewrap.wrappingColumn": 72, 663 | "vscode-color-picker.languages": [ 664 | "python", 665 | "javascript", 666 | "typescript", 667 | "C" 668 | ], 669 | "python.languageServer": "Jedi", 670 | "python.analysis.diagnosticSeverityOverrides": { 671 | "strictListInference": "none", 672 | "strictDictionaryInference": "none", 673 | "strictSetInference": "none", 674 | "analyzeUnannotatedFunctions": "none", 675 | "strictParameterNoneValue": "none", 676 | "enableTypeIgnoreComments": "none", 677 | "deprecateTypingAliases": "none", 678 | "enableExperimentalFeatures": "none", 679 | "disableBytesTypePromotions": "none", 680 | "reportGeneralTypeIssues": "none", 681 | "reportPropertyTypeMismatch": "none", 682 | "reportFunctionMemberAccess": "none", 683 | "reportMissingImports": "none", 684 | "reportMissingModuleSource": "none", 685 | "reportInvalidTypeForm": "none", 686 | "reportMissingTypeStubs": "none", 687 | "reportImportCycles": "none", 688 | "reportUnusedImport": "none", 689 | "reportUnusedClass": "none", 690 | "reportUnusedFunction": "none", 691 | "reportUnusedVariable": "none", 692 | "reportDuplicateImport": "none", 693 | "reportWildcardImportFromLibrary": "none", 694 | "reportAbstractUsage": "none", 695 | "reportArgumentType": "none", 696 | "reportAssertTypeFailure": "none", 697 | "reportAssignmentType": "none", 698 | "reportAttributeAccessIssue": "none", 699 | "reportCallIssue": "none", 700 | "reportInconsistentOverload": "none", 701 | "reportIndexIssue": "none", 702 | "reportInvalidTypeArguments": "none", 703 | "reportNoOverloadImplementation": "none", 704 | "reportOperatorIssue": "none", 705 | "reportOptionalSubscript": "none", 706 | "reportOptionalMemberAccess": "none", 707 | "reportOptionalCall": "none", 708 | "reportOptionalIterable": "none", 709 | "reportOptionalContextManager": "none", 710 | "reportOptionalOperand": "none", 711 | "reportRedeclaration": "none", 712 | "reportReturnType": "none", 713 | "reportTypedDictNotRequiredAccess": "none", 714 | "reportUntypedFunctionDecorator": "none", 715 | "reportUntypedClassDecorator": "none", 716 | "reportUntypedBaseClass": "none", 717 | "reportUntypedNamedTuple": "none", 718 | "reportPrivateUsage": "none", 719 | "reportTypeCommentUsage": "none", 720 | "reportPrivateImportUsage": "none", 721 | "reportConstantRedefinition": "none", 722 | "reportDeprecated": "none", 723 | "reportIncompatibleMethodOverride": "none", 724 | "reportIncompatibleVariableOverride": "none", 725 | "reportInconsistentConstructor": "none", 726 | "reportOverlappingOverload": "none", 727 | "reportPossiblyUnboundVariable": "none", 728 | "reportMissingSuperCall": "none", 729 | "reportUninitializedInstanceVariable": "none", 730 | "reportInvalidStringEscapeSequence": "none", 731 | "reportUnknownParameterType": "none", 732 | "reportUnknownArgumentType": "none", 733 | "reportUnknownLambdaType": "none", 734 | "reportUnknownVariableType": "none", 735 | "reportUnknownMemberType": "none", 736 | "reportMissingParameterType": "none", 737 | "reportMissingTypeArgument": "none", 738 | "reportInvalidTypeVarUse": "none", 739 | "reportCallInDefaultInitializer": "none", 740 | "reportUnnecessaryIsInstance": "none", 741 | "reportUnnecessaryCast": "none", 742 | "reportUnnecessaryComparison": "none", 743 | "reportUnnecessaryContains": "none", 744 | "reportAssertAlwaysTrue": "none", 745 | "reportSelfClsParameterName": "none", 746 | "reportImplicitStringConcatenation": "none", 747 | "reportUndefinedVariable": "none", 748 | "reportUnboundVariable": "none", 749 | "reportInvalidStubStatement": "none", 750 | "reportIncompleteStub": "none", 751 | "reportUnsupportedDunderAll": "none", 752 | "reportUnusedCallResult": "none", 753 | "reportUnusedCoroutine": "none", 754 | "reportUnusedExcept": "none", 755 | "reportUnusedExpression": "none", 756 | "reportUnnecessaryTypeIgnoreComment": "none", 757 | "reportMatchNotExhaustive": "none", 758 | "reportImplicitOverride": "none", 759 | "reportShadowedImports": "none", 760 | }, 761 | "python.analysis.inlayHints.variableTypes": false, 762 | "python.analysis.inlayHints.pytestParameters": false, 763 | "python.analysis.inlayHints.functionReturnTypes": false, 764 | "python.analysis.persistAllIndices": false, 765 | "python.analysis.logLevel": "Error", 766 | "explorerExclude.showPicker": false, 767 | "workbench.activityBar.location": "top", 768 | "ruff.lint.args": [ 769 | "--select=ALL", 770 | "--extend-select=UP", 771 | "--fix", 772 | "--unsafe-fixes" 773 | ], 774 | "material-icon-theme.files.color": "#26a69a", 775 | "explorer.confirmDelete": false, 776 | "workbench.editorAssociations": { 777 | "*.jpg": "luna.editor" 778 | }, 779 | "openInExternalApp.openMapper": [ 780 | { 781 | "extensionName": "py", 782 | "apps": [ 783 | { 784 | "title": "IPYTHON", 785 | "openCommand": "fit.bat" 786 | } 787 | ] 788 | }, 789 | ], 790 | "editor.defaultFormatter": "charliermarsh.ruff", 791 | "editor.mouseWheelZoom": true, 792 | "runTerminalCommand.commands": [ 793 | { 794 | "command": "rufffiximports.bat {resource}", 795 | "auto": true, 796 | } 797 | ], 798 | "window.zoomLevel": -1, 799 | "debug.internalConsoleOptions": "neverOpen", 800 | "clipboard-manager.snippet.enabled": false, 801 | "codeium.aggressiveShutdown": true, 802 | "shellcheck.exclude": [ 803 | "SC3054", 804 | "SC3030" 805 | ], 806 | "files.eol": "\n", 807 | "workbench.editor.highlightModifiedTabs": true, 808 | "luna.retainContextWhenHidden": false, 809 | "prettier.resolveGlobalModules": true, 810 | "git.openRepositoryInParentFolders": "never" 811 | } 812 | ``` 813 | 814 | ## windows terminal config 815 | 816 | ``` 817 | { 818 | "persistedWindowLayouts" : 819 | [ 820 | { 821 | "initialPosition" : "1,2", 822 | "initialSize" : 823 | { 824 | "height" : 648.0, 825 | "width" : 1280.0 826 | }, 827 | "launchMode" : "default", 828 | "tabLayout" : 829 | [ 830 | { 831 | "action" : "newTab", 832 | "commandline" : "%SystemRoot%\\System32\\cmd.exe", 833 | "profile" : "Command Prompt", 834 | "startingDirectory" : "C:\\Users\\xxx", 835 | "suppressApplicationTitle" : false, 836 | "tabTitle" : "Command Prompt" 837 | }, 838 | { 839 | "action" : "openSettings", 840 | "target" : "settingsUI" 841 | } 842 | ] 843 | } 844 | ] 845 | } 846 | ``` 847 | 848 | ## c:\menu.bat / c:\menu.exe 849 | 850 | ``` 851 | @echo off 852 | 853 | 854 | setlocal enabledelayedexpansion 855 | 856 | :: Check for administrative privileges 857 | >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" 858 | 859 | if %errorlevel% neq 0 ( 860 | echo You are not an admin. 861 | set "folderPath=%USERPROFILE%\.conda\envs" 862 | ) else ( 863 | echo You are an admin. 864 | set "folderPath=%ProgramData%\anaconda3\envs" 865 | ) 866 | 867 | 868 | set "form_use_jedi=True" 869 | set "form_greedy=True" 870 | set "form_suppress_competing_matchers=True" 871 | set "form_limit_to__all__=False" 872 | set "form_jedi_compute_type_timeout=10000" 873 | set "form_evaluation='dangerous'" 874 | set "form_auto_close_dict_keys=True" 875 | set "form_max_width=9999" 876 | set "form_hist_file=%USERPROFILE%/ipython_hist.sqlite" 877 | set "form_hist_file=%form_hist_file:\=/%" 878 | set "form_db_cache_size=0" 879 | set "form_xmode='Verbose'" 880 | set "form_space_for_menu=20" 881 | set "form_history_load_length=10000" 882 | set "form_history_length=100000" 883 | set "form_display_page=True" 884 | set "form_autoformatter='black'" 885 | set "form_auto_match=True" 886 | set "form_history_load_length=10000" 887 | set "form_history_length=100000" 888 | set "form_log_level=30" 889 | set "form_colors=Linux" 890 | set "from_sqlite_path=" 891 | set "from_cache_size=100000" 892 | 893 | echo 0. Create new env 894 | set "index=1" 895 | 896 | for /d %%F in ("%folderPath%\*") do ( 897 | echo !index!. %%~nxF 898 | set "folders[!index!]=%%~fF" 899 | set "folders2[!index!]=%%~nxF 900 | 901 | set /a index+=1 902 | ) 903 | 904 | set /p choice=Enter your choice: 905 | 906 | if %choice% equ 0 ( 907 | set /p envname=Name of new env: 908 | echo !envname! 909 | 910 | set /p pyversion=Python version: 911 | echo !pyversion! 912 | 913 | set /p packages=Packages to install: 914 | echo !packages! 915 | 916 | call conda config --prepend channels defaults 917 | call conda config --set channel_priority disabled 918 | call conda create -y -n !envname! python=!pyversion! pip ipython !packages! 919 | echo call conda activate !envname! > !folderPath!\!envname!\si.bat 920 | echo start cmd /k vtm -r term cmd.exe >> !folderPath!\!envname!\si.bat 921 | 922 | 923 | set "form_logfile=!folderPath!\!envname!\ipythonlog.log 924 | set "form_logfile=%form_logfile:\=/%" 925 | 926 | :: echo MODE con:cols=9999 lines=9999 > !folderPath!\!envname!\ipy.bat 927 | echo call touch _____tmp.py >> !folderPath!\!envname!\ipy.bat 928 | echo call ipython -i _____tmp.py -c="run %%1" --Completer.use_jedi=!form_use_jedi! --Completer.greedy=!form_greedy! --Completer.suppress_competing_matchers=!form_suppress_competing_matchers! --Completer.limit_to__all__=!form_limit_to__all__! --Completer.jedi_compute_type_timeout=!form_jedi_compute_type_timeout! --Completer.evaluation=!form_evaluation! --Completer.auto_close_dict_keys=!form_auto_close_dict_keys! --PlainTextFormatter.max_width=!form_max_width! --HistoryManager.hist_file=!form_hist_file! --HistoryManager.db_cache_size=!form_db_cache_size! --TerminalInteractiveShell.xmode=!form_xmode! --TerminalInteractiveShell.space_for_menu=!form_space_for_menu! --TerminalInteractiveShell.history_load_length=!form_history_load_length! --TerminalInteractiveShell.history_length=!form_history_length! --TerminalInteractiveShell.display_page=!form_display_page! --TerminalInteractiveShell.autoformatter=!form_autoformatter! --TerminalInteractiveShell.auto_match=!form_auto_match! --logappend=!form_logfile! --logfile=!form_logfile! --InteractiveShell.history_load_length=!form_history_load_length! --InteractiveShell.history_length=!form_history_length! --cache-size=!from_cache_size! --BaseIPythonApplication.log_level=!form_log_level! --colors=!form_colors! >> !folderPath!\!envname!\ipy.bat 929 | 930 | echo call cmd /k vtm -r term cmd /k ipy.bat %%1 >> !folderPath!\!envname!\fit.bat 931 | 932 | endlocal 933 | call %0 934 | 935 | ) else if %choice% gtr 0 if %choice% lss %index% ( 936 | set "selectedFolder=!folders[%choice%]!" 937 | set "selectedFolder2=!folders2[%choice%]!" 938 | 939 | echo You chose: !selectedFolder! 940 | ::call conda activate !selectedFolder2! 941 | set "tmp_link_file=%TEMP%\tmpfile_%RANDOM%.tmp" 942 | call where /R "%PROGRAMFILES%" /F code.exe > !tmp_link_file! 943 | call set /p msg= < !tmp_link_file! 944 | call activate !selectedFolder2! 945 | :: call !msg! !selectedFolder! 946 | start cmd /k !msg! !selectedFolder! 947 | endlocal 948 | ) else ( 949 | echo Invalid choice. Please try again. 950 | ) 951 | 952 | ``` 953 | 954 | ## c:\menu.bat / c:\menu.exe - Alternative version (new versions of VSCode) if you get an error `where` is not ... 955 | 956 | ``` 957 | @echo off 958 | 959 | 960 | setlocal enabledelayedexpansion 961 | 962 | :: Check for administrative privileges 963 | >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" 964 | 965 | if %errorlevel% neq 0 ( 966 | echo You are not an admin. 967 | set "folderPath=%USERPROFILE%\.conda\envs" 968 | ) else ( 969 | echo You are an admin. 970 | set "folderPath=%ProgramData%\anaconda3\envs" 971 | ) 972 | 973 | 974 | set "form_use_jedi=True" 975 | set "form_greedy=True" 976 | set "form_suppress_competing_matchers=True" 977 | set "form_limit_to__all__=False" 978 | set "form_jedi_compute_type_timeout=10000" 979 | set "form_evaluation='dangerous'" 980 | set "form_auto_close_dict_keys=True" 981 | set "form_max_width=9999" 982 | set "form_hist_file=%USERPROFILE%/ipython_hist.sqlite" 983 | set "form_hist_file=%form_hist_file:\=/%" 984 | set "form_db_cache_size=0" 985 | set "form_xmode='Verbose'" 986 | set "form_space_for_menu=20" 987 | set "form_history_load_length=10000" 988 | set "form_history_length=100000" 989 | set "form_display_page=True" 990 | set "form_autoformatter='black'" 991 | set "form_auto_match=True" 992 | set "form_history_load_length=10000" 993 | set "form_history_length=100000" 994 | set "form_log_level=30" 995 | set "form_colors=Linux" 996 | set "from_sqlite_path=" 997 | set "from_cache_size=100000" 998 | 999 | echo 0. Create new env 1000 | set "index=1" 1001 | 1002 | for /d %%F in ("%folderPath%\*") do ( 1003 | echo !index!. %%~nxF 1004 | set "folders[!index!]=%%~fF" 1005 | set "folders2[!index!]=%%~nxF 1006 | 1007 | set /a index+=1 1008 | ) 1009 | 1010 | set /p choice=Enter your choice: 1011 | 1012 | if %choice% equ 0 ( 1013 | set /p envname=Name of new env: 1014 | echo !envname! 1015 | 1016 | set /p pyversion=Python version: 1017 | echo !pyversion! 1018 | 1019 | set /p packages=Packages to install: 1020 | echo !packages! 1021 | 1022 | call conda config --prepend channels defaults 1023 | call conda config --set channel_priority disabled 1024 | call conda create -y -n !envname! python=!pyversion! pip ipython !packages! 1025 | echo call conda activate !envname! > !folderPath!\!envname!\si.bat 1026 | echo start cmd /k vtm -r term cmd.exe >> !folderPath!\!envname!\si.bat 1027 | 1028 | 1029 | set "form_logfile=!folderPath!\!envname!\ipythonlog.log 1030 | set "form_logfile=%form_logfile:\=/%" 1031 | 1032 | :: echo MODE con:cols=9999 lines=9999 > !folderPath!\!envname!\ipy.bat 1033 | echo call touch _____tmp.py >> !folderPath!\!envname!\ipy.bat 1034 | echo call ipython -i _____tmp.py -c="run %%1" --Completer.use_jedi=!form_use_jedi! --Completer.greedy=!form_greedy! --Completer.suppress_competing_matchers=!form_suppress_competing_matchers! --Completer.limit_to__all__=!form_limit_to__all__! --Completer.jedi_compute_type_timeout=!form_jedi_compute_type_timeout! --Completer.evaluation=!form_evaluation! --Completer.auto_close_dict_keys=!form_auto_close_dict_keys! --PlainTextFormatter.max_width=!form_max_width! --HistoryManager.hist_file=!form_hist_file! --HistoryManager.db_cache_size=!form_db_cache_size! --TerminalInteractiveShell.xmode=!form_xmode! --TerminalInteractiveShell.space_for_menu=!form_space_for_menu! --TerminalInteractiveShell.history_load_length=!form_history_load_length! --TerminalInteractiveShell.history_length=!form_history_length! --TerminalInteractiveShell.display_page=!form_display_page! --TerminalInteractiveShell.autoformatter=!form_autoformatter! --TerminalInteractiveShell.auto_match=!form_auto_match! --logappend=!form_logfile! --logfile=!form_logfile! --InteractiveShell.history_load_length=!form_history_load_length! --InteractiveShell.history_length=!form_history_length! --cache-size=!from_cache_size! --BaseIPythonApplication.log_level=!form_log_level! --colors=!form_colors! >> !folderPath!\!envname!\ipy.bat 1035 | 1036 | echo call cmd /k vtm -r term cmd /k ipy.bat %%1 >> !folderPath!\!envname!\fit.bat 1037 | 1038 | endlocal 1039 | call %0 1040 | 1041 | ) else if %choice% gtr 0 if %choice% lss %index% ( 1042 | set "selectedFolder=!folders[%choice%]!" 1043 | set "selectedFolder2=!folders2[%choice%]!" 1044 | 1045 | echo You chose: !selectedFolder! 1046 | ::call conda activate !selectedFolder2! 1047 | set "tmp_link_file=%TEMP%\tmpfile_%RANDOM%.tmp" 1048 | call set /p msg= < !tmp_link_file! 1049 | call activate !selectedFolder2! 1050 | :: call !msg! !selectedFolder! 1051 | start cmd /k "c:\Program Files\Microsoft VS Code\bin\code.cmd" !selectedFolder! 1052 | endlocal 1053 | ) else ( 1054 | echo Invalid choice. Please try again. 1055 | ) 1056 | 1057 | 1058 | 1059 | ``` 1060 | 1061 | 1062 | ## vtm config 1063 | 1064 | ``` 1065 | %programdata%/vtm/settings.xml 1066 | ``` 1067 | 1068 | ``` 1069 | 1070 | 1071 | 1072 | 1073 | 1074 | 1075 | 1076 | 1077 | console.log("Hello, World!"); 1078 | 1079 | 1080 | 1081 | 1082 | 1083 | 1086 | 1087 | 1088 | " Default applications group \n" 1089 | " It can be configured in ~/.config/vtm/settings.xml " 1090 | 1091 | 1092 | 1196 | 1197 | 1198 | 1199 | 1200 | 1201 | 1202 | 1203 | 1204 | 1205 | 1206 | 1207 | 1208 | 1209 | 1210 | 1211 | 1212 | 1213 | 1214 | 1215 | 1216 | 1217 | 1218 | 1219 | 1220 | 1221 | 1222 | 1223 | 1224 | 1225 | 1226 | 1251 | 1252 | 1253 | 1254 | 1255 | 1256 | 1257 | 1258 | 1259 | 1260 | 1261 | 1262 | 1263 | 1264 | 1265 | 1266 | 1267 | 1268 | 1269 | 1270 | 1271 | 1272 | 1273 | 1274 | 1275 | 1276 | 1277 | 1278 | 1279 | 1280 | 1281 | 1282 | 1283 | 1284 | 1285 | 1286 | 1287 | 1288 | 1289 | 1290 | 1291 | 1292 | 1293 | 1294 | 1295 | 1296 | 1297 | 1298 | 1299 | 1300 | 1301 | 1302 | 1303 | 1304 | 1305 | 1306 | 1307 | 1308 | 1309 | 1310 | 1311 | 1312 | 1313 | 1314 | 1315 | 1316 | 1317 | 1318 | 1319 | 1320 | 1321 | 1322 | 1323 | 1324 | 1325 | 1326 | 1327 | 1328 | 1329 | 1330 | 1331 | 1332 | 1333 | 1334 | 1335 | 1336 | 1337 | 1338 | 1339 | 1340 | 1341 | 1342 | 1343 | 1344 | 1345 | 1346 | 1347 | 1348 | 1349 | 1350 | 1351 | 1352 | 1353 | 1354 | 1355 | 1356 | " Previous match \n" 1357 | " - Jump to previous match with selection \n" 1358 | " - Clipboard data will be used if no selection \n" 1359 | " - Scroll one page up if clipboard is empty " 1360 | 1361 | 1362 | 1363 | \e[m"/> 1364 | 1365 | " Next match \n" 1366 | " - Jump to next match with selection \n" 1367 | " - Clipboard data will be used if no selection \n" 1368 | " - Scroll one page down if clipboard is empty " 1369 | 1370 | 1371 | 1372 | 1373 | 1374 | " Wrapping text lines on/off \n" 1375 | " - Applied to selection if it is " 1376 | 1377 | 1378 | 1379 | 1380 | 1381 | 1392 | 1393 | 1394 | 1395 | 1396 | 1397 | 1398 | 1399 | 1400 | 1401 | 1402 | 1403 | 1404 | 1405 | 1406 | 1411 | 1412 | 1413 | 1414 | 1415 | 1416 | 1417 | 1418 | 1419 | 1420 | 1421 | 1422 | 1423 | 1424 | 1425 | 1426 | 1427 | 1428 | 1429 | 1430 | 1431 | 1432 | 1433 | 1434 | 1435 | 1436 | 1437 | 1438 | 1439 | 1440 | 1441 | 1442 | 1443 | ``` 1444 | 1445 | ## ripgrep py C:\rgtt.bat 1446 | https://github.com/hansalemaos/ripgreppythonfiles 1447 | 1448 | ``` 1449 | 1450 | call python -c "from ripgreppythonfiles import rfile;rfile(r'''%*''')" 1451 | 1452 | ``` 1453 | 1454 | ## ruff importfixer C:\rufffiximports.bat 1455 | 1456 | https://github.com/hansalemaos/ruffrgimportfixer 1457 | 1458 | 1459 | ``` 1460 | python -c "from ruffrgimportfixer import fix_imports;fix_imports(r'''%*''')" 1461 | ``` 1462 | 1463 | ## file search c:\fa.bat 1464 | 1465 | ``` 1466 | @echo off 1467 | setlocal enabledelayedexpansion 1468 | 1469 | set "timestamp=%date:~4,2%%date:~7,2%%date:~10,4%_%time:~0,2%%time:~3,2%%time:~6,2%" 1470 | set "tempFile=%TEMP%\results_!timestamp!.txt" 1471 | 1472 | if "%2"=="" ( 1473 | set "minDepth=0" 1474 | ) else ( 1475 | set "minDepth=%2" 1476 | ) 1477 | 1478 | if "%3"=="" ( 1479 | set "maxDepth=1000" 1480 | ) else ( 1481 | set "maxDepth=%3" 1482 | ) 1483 | 1484 | call fd %* -a --unrestricted --follow --max-depth !maxDepth! --min-depth !minDepth! --color always > "!tempFile!" 1485 | 1486 | call type "!tempFile!" 1487 | echo Results: !tempFile! 1488 | 1489 | endlocal 1490 | ``` 1491 | ## c:\v64.bat 1492 | ``` 1493 | call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64 1494 | ``` 1495 | 1496 | 1497 | 1498 | --------------------------------------------------------------------------------