0

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++?

1
  • Are text files automatically opened with Notepad or Notepad++ ?
    – matzeri
    Dec 14, 2021 at 15:04

1 Answer 1

0

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.

source

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.