Advertisement
J2897

NppExec

Oct 29th, 2021
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. These are for the NppExec plugin for Notepad++. After they're configured, you can assign Hotkeys here:
  2.  
  3. Settings > Shortcut Mapper
  4.  
  5. You can assign multiple Hotkeys to VENV. Just remember to change the Project Name for each environment.
  6.  
  7. -----------------------------------------------------------------
  8.  
  9. Batch:
  10. npp_save
  11. cd "$(CURRENT_DIRECTORY)"
  12. cmd /c "$(FULL_CURRENT_PATH)"
  13.  
  14. PowerShell:
  15. npp_save
  16. cd "$(CURRENT_DIRECTORY)"
  17. powershell.exe -ExecutionPolicy Unrestricted -NoLogo -File "$(FULL_CURRENT_PATH)"
  18.  
  19. Python:
  20. npp_save
  21. cd "$(CURRENT_DIRECTORY)"
  22. python "$(FULL_CURRENT_PATH)"
  23.  
  24. VENV:
  25. npp_save
  26. cd "$(CURRENT_DIRECTORY)"
  27. cmd /c "C:\Users\J2897\Code\Batch\NPP_VENV.bat" $(FULL_CURRENT_PATH) <Project Name>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement