Skip to content

Commit

Permalink
Update to documentation and run_editor.js (#35)
Browse files Browse the repository at this point in the history
Improve documentation to stress, that the PhpStorm folder name must be specified on Windows.
  • Loading branch information
amacsmith committed Jan 28, 2021
1 parent 963f327 commit f38922a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PhpStorm Protocol (Win)/run_editor.js
Expand Up @@ -6,10 +6,10 @@ var settings = {
x64: true,

// Set to folder name, where PhpStorm was installed to (e.g. 'PhpStorm')
folder_name: 'PhpStorm 2017.1.4',
folder_name: '<phpstorm_folder_name>',

// Set to window title (only text after dash sign), that you see, when switching to running PhpStorm instance
window_title: 'PhpStorm 2017.1.4',
window_title: '<phpstorm_window_title>',

// In case your file is mapped via a network share and paths do not match.
// eg. /var/www will can replaced with Y:/
Expand Down Expand Up @@ -113,4 +113,4 @@ function configureToolboxSettings(settings) {
eval('var productVersion = ' + content + ';');
settings.window_title = 'PhpStorm ' + productVersion.version;
editor = '"' + toolboxDirectory + settings.folder_name + '\\' + productVersion.launch[ 0 ].launcherPath.replace(/\//g, '\\') + '"';
}
}
16 changes: 16 additions & 0 deletions README.md
Expand Up @@ -50,6 +50,22 @@ Installing on Windows
4. double click on ```C:\Program Files\PhpStorm Protocol (Win)\run_editor.reg``` file
5. agree to whatever Registry Editor asks you
6. update settings at ```C:\Program Files\PhpStorm Protocol (Win)\run_editor.js``` file, because each PhpStorm version is installed into it's own sub-folder!
#### run_editor.js:
```
// Set to folder name, where PhpStorm was installed to (e.g. 'PhpStorm')
folder_name: '<phpstorm_folder_name>',
// Set to window title (only text after dash sign), that you see, when switching to running PhpStorm instance
window_title: '<phpstorm_window_title>',
```
#### updated run_editor.js
```
// Set to folder name, where PhpStorm was installed to (e.g. 'PhpStorm')
folder_name: 'PhpStorm 2017.1.4',
// Set to window title (only text after dash sign), that you see, when switching to running PhpStorm instance
window_title: 'PhpStorm 2017.1.4',
```
7. delete cloned folder

#### Working under another path?
Expand Down

0 comments on commit f38922a

Please sign in to comment.