Add commands to the context menu of the file explorer and editor.
Add buttons to the Python Notebook Toolbars (see configuration)
context-menu-extra.localhostRelativePath : Add a
Copy Localhost Path to the context menu. It fills the clipboard with the text
http://localhost:<portnumber>/<relativePath>. It uses the configuration variables:
<relativePath> is the path relative to the root directory of the website.
context-menu-extra.fileName : Add a
Copy File Name to the context menu. It fills the clipboard with the file name.
context-menu-extra.activeEditorRelativePath : Add a
Copy Path relative to Active Editor to the context menu of the file explorer. It fills the clipboard with the path of the context-clicked entry relative to the path of the active editor. Do not select the other file but context/right click the other file. It uses the configuration variable:
context-menu-extra.localhostPortNumber : The portnumber of the local webserver. (default:
context-menu-extra.fileroot : see the section file root
context-menu-extra.singleDot : Add a single dot (
./) to path relative to editor if needed
context-menu-extra.notebookClearCellOutputInTopToolbar : Show "Clear Output of Cell" button in Python Notebook Top Toolbar
context-menu-extra.notebookClearCellOutputInCellToolbar : Show "Clear Output of Cell" button in Python Notebook Cell Toolbar if it has output
Is an array of strings that are the relative root directories of the websites in the workspace folder.
These strings are joined with the workspace folder to get the full website root folders.
Which folder is choosen as the website root folder is determined with the following steps:
- rootfolder = workspace folder path of file
- If a join of the workspace folder and an element of
fileroot is the start of the current file path: rootfolder = this join
If you have the following directory structure
│ └── settings.json
│ └── siteFoo
│ └── <website files>
└── <website files>
and you have opened
/home/myname/WebProjects as a folder or part of a Multi Root Workspace you add this setting to the file
You can use the Settings GUI to modify this setting for any folder of the (MR) Workspace.
It does not make sence to use
context-menu-extra.fileroot in the global user setting.
- "Clear Output of Cell" button in Notebook Top Toolbar
- Show "Clear Output of Cell" button if configuration item is set to true
- Python Notebook toolbar item to clear individual cell output