So when I am writing code, I use notepad++ and when I am done, I copy-paste it to plain old notepad because I use Cygwin and notepad is the only text editor that I know how to access from the shell. Could someone teach me how to go from the prompt directly to N++?
-
Are text files automatically opened with Notepad or Notepad++ ?– matzeriDec 14, 2021 at 15:04
1 Answer
To launch notepad++.exe
with the shell path to the file converted to
a proper windows path, you may use the following script:
#!/bin/bash
/cygdrive/c/Program\ Files\ \(x86\)/Notepad++/notepad++.exe `cygpath.exe -w "$*"`
The path to notepad++.exe
may vary.