Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can we open folder as workspace from command line in notepad++?

Dragging and dropping opens the folder as workspace, but launching notepad++ from commandline and passing a folder as argument opens all the files int he folder instead of opening as workspace. How can I open a folder as workspace from commandline in notepad++.

I use version 7.2.2

like image 312
st401 Avatar asked Dec 03 '16 21:12

st401


People also ask

How do I open a folder as workspace in Notepad++?

Folder as Workspace When you drag a folder from Windows Explorer onto Notepad++, this feature will be activated (unless overridden by the ”… folder dropping” option). You can also load a Folder as Workspace using the -openFoldersAsWorkspace command line argument.

How do I open a folder in notepad?

You can use it either with an open folder in a notepad or using the plugin. Open the folder as a tree view One way, Select File menu > select Open Folder as workspace item, It opens the folder as a file tree view in the left side navigation.

How do I open a text file in Notepad operating system using CMD?

From your command prompt you can type notepad++ textfilename. txt and it will launch notepad++ with that file. Note: You must type the name the same as the shortcut. So if you named the shortcut notepad++.exe you need to type it that way in the command prompt.


1 Answers

This feature is now available in v7.8 release

Here's the commit description which gives an example :

Add the ability to open folders in "folder as workspace" panel via command line argument "-openFoldersAsWorkspace".

Example:

notepad++ -openFoldersAsWorkspace c:\src\myProj01 c:\src\myProj02

The above command will launch notepad++ with folder as workspace panel by opening myProj01 and myProj02 in panel.

like image 125
Saurabh P Bhandari Avatar answered Sep 28 '22 07:09

Saurabh P Bhandari