Skip to content

Commit 5f82d65

Browse files
committed
2 parents c8c236e + 82bfc31 commit 5f82d65

1 file changed

Lines changed: 28 additions & 2 deletions

File tree

README.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,28 @@
1-
# editor-opener
2-
JScript utility to open links in form 'editor://open?file=...&line=...' in Visual Studio or your favourite text editor or IDE.
1+
# Editor Opener
2+
JScript utility to open **[Desharp](https://www.nuget.org/packages/Desharp/)** log links and rendered exception links like: 'editor://open?file=...&line=...' efectively back in Visual Studio or your favourite text editor or IDE.
3+
4+
This tool is proudly based on this script: **[Opening files in IDE by one click from Tracy's page](https://pla.nette.org/en/how-open-files-in-ide-from-debugger)**
5+
6+
## Instalation
7+
- **Put the contents of the repository to a new empty folder, where you will no longer move the folder in the future**, for example `C:\Program Files (x86)\Editor Opener`
8+
- **Run `Install.wsf` by double click on it, better to run as Administrator**
9+
- allow all messages by Antivirus
10+
- because script has to change itself to run properly in the future
11+
- because script has to create and run *.bat and *.reg files to register all browser links beginning with: `editor://` to be handled in the future by Opener.wsf
12+
- if you are still fucking fearful, [read the source code here](https://github.com/debug-sharp/editor-opener/blob/master/Install.wsf), it doesn't send anything about you anywhere:-)
13+
- if you are not sure if everything has been ok, you can run `Install.wsf` anytime again without any consequences.
14+
- if it is not possible to run by double click, run it from command line by: `cscript.exe Install.wsf`
15+
- Once the installation has finished successfully, you should see the window wth text: **"Run editor successfully installed."**
16+
17+
## Test
18+
- open file: `test.html` in your favourite browser and click on any editor link you have installed on your local machine
19+
- if you see after second opened file `test.html` in chosen editor, everything works fine and you can use **[Desharp](https://www.nuget.org/packages/Desharp/)** HTML logs and **[Desharp](https://www.nuget.org/packages/Desharp/)** web application exceptions in responses more efectively
20+
21+
## Usage
22+
- **[Desharp](https://www.nuget.org/packages/Desharp/)** can automaticly detect, which version of Visual Studio you are currently using, so it's not necessary to change anything, **[Desharp](https://www.nuget.org/packages/Desharp/)** will always add proper param to open files in currently installed visual studio
23+
- to use this Editor Opener in other developer platforms and to realy add any other editor, edit file `Opener.wsf`, it's nice and short, you will see, what to do
24+
- let **[Desharp](https://www.nuget.org/packages/Desharp/)** logs output format to **html** by config settings `<add key="Desharp:Output" value="html" />`
25+
- call: `Desharp.Debug.Log(obj, Level.INFO);`
26+
- click on any `editor://` link inside `~/logs/info.html` file opened in your browser to see what happends
27+
- throw any exception in you ASP.NET application: `throw new Exception("msg");`
28+
- click on any `editor://` link in rendered exception in browser response to see what happends

0 commit comments

Comments
 (0)