How to synch same text file in two computers



  • Hi NP ++ lovers .I have a laptop and desktop and have installed NP++ on both.i also have one drive on both machines.i tried to synch the same text file using the cloud option …file is saved in one drive. but when i type text on laptop …it does not show in np++ on the desktop. Please advice



  • @sumit-Kumar-bhardwaj said in How to synch same text file in two computers:

    but when i type text on laptop …it does not show in np++ on the desktop. Please advice

    You think you are going to get as-you-type, character-by-character syncing? I think you have unrealistic expectations. Probably when you save the file on one computer something will happen on the other.



  • @sumit-Kumar-bhardwaj said in How to synch same text file in two computers:

    i tried to synch the same text file using the cloud option

    For your reference, the cloud option sets where Notepad++ saves its settings: normally it goes in %AppData%\Notepad++ 🛈, but with Cloud enabled, the settings go in the defined folder, which is supposedly in your Cloud hierarchy (OneDrive, Dropbox, etc).

    However, the setting does not influence where the files you edit are saved. If you want to edit a file that will be synced to your Cloud (OneDrive, Dropbox, etc), you have to save the file in that folder. If you save it in folder c:\blah\x\, but your Cloud service was installed and configured to sync files to c:\cloud\Y\, then the file in c:\blah\x\ will not be synced to the Cloud.

    Does this make sense to you?



  • @PeterJones said in How to synch same text file in two computers:

    If you want to edit a file that will be synced to your Cloud (OneDrive, Dropbox, etc), you have to save the file in that folder.

    Gosh. In my reply I didn’t consider the possibility that the OP didn’t understand this. But, if someone is not computer savvy enough to understand that they aren’t going to get character-at-a-time syncing, then, well, hmmm.



  • @Alan-Kilborn said in How to synch same text file in two computers:

    In my reply I didn’t consider the possibility that the OP didn’t understand this

    Actually, the OP did say,

    file is saved in one drive

    so the OP probably does know this. I just thought I would make it abundantly and explicitly clear

    @Alan-Kilborn also said

    Probably when you save the file on one computer something will happen on the other.

    Actually, it’s a three-step process: you have to save the file on one computer, then the Cloud client on that computer has to sync the file to the cloud (it’s not instantaneous, and might be a scheduled or bandwidth-limited task), then the Cloud client on the second computer has to sync its local copy from the cloud (again, not instantaneous). But yes, the remote Notepad++ will definitely not see the characters instantaneously as they are typed on the local computer.



  • @PeterJones

    I said:

    Probably when you save the file on one computer something will happen on the other.

    Yea, I was “talking down” to the OP, here, simplifying what actually goes on.

    However, I should note that with OneDrive something may happen (again, perhaps not instantly) on BOTH computers, given my experience HERE.



  • @sumit-Kumar-bhardwaj

    There is a plugin that can help you doing what you want. It is listed as NppNetNote in official Notepad++ plugin list. Unfortunately it is only available as 32 bit version, so you need to use Notepad++ as 32 bit version as well.

    You can install the plugin by navigating to (menu) Plugins -> Plugins Admin and select NppNetNote from the list of available plugins. However, after Notepad++ has been restarted you will find it listed as NppDocShare in the Plugins menu. Please note: You need to install the plugin on both of your computers.

    The plugin installs a single menu entry and a toolbar button related to it. Clicking on them opens a panel with the plugin’s UI. On one of your computers you need to click the Serve button. The Windows firewall will pop up a dialog to allow inbound network access for notepad++.exe (the hosting process of the plugin’s DLL file) and maybe a User Account Control (UAC) dialog as well, which you have to confirm both. On your other computer you have to click the Connect button. After the Status field shows Connected you can enter text into the active tab of Notepad++ on one computer and the characters will appear simultanously in the active tab of Notepad++ on the other computer. Please note: Only these Notepad++ tabs are synched between the two computers that were the active ones when establishing the connection.


Log in to reply