Skip to content

Latest commit

 

History

History
41 lines (18 loc) · 1.98 KB

edit_userscript_.md

File metadata and controls

41 lines (18 loc) · 1.98 KB

Edit user script

Once open your user script with a text editor, you can edit it whenever you like, and the changes given will be reflect immediately as mentioned before with hot reloading feature.

<iframe width="560" height="315" src="https://www.youtube.com/embed/NDZc8hArVd8" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

Debugging with Console

Crevice4 supports --verbose option which means output detail informations to console: see Command line interface for the details.

When crevice4 starts with --verbose option, invocation of functions like Console.WriteLine() in the user script will be activated and the messages will be printed to console.

> crevice4.exe --verbose
<iframe width="560" height="315" src="https://www.youtube.com/embed/c8bRyaE1iC0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

Edit user script with Visual Studio Code

Simple text editors can do this, but IDE which supports IntelliSense is very helpful. Cevice4 provides IDE integrate feature.

Visual Studio Code and C# Plugin are required.

And also, IDESupport files must be placed in Crevice 4 userscript directory. The way to setup it is simple, extract Crevice 4 zip archive distributed on GitHub as the name IDESupport and then, place it in Crevice 4 userscript directory.

The following instruction movie includes the way to setup IDESupport files.

<iframe width="560" height="315" src="https://www.youtube.com/embed/VkRK_w7ad80" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

After the setup, you can edit Crevice 4 user script with Visual Studio Code.

<iframe width="560" height="315" src="https://www.youtube.com/embed/4mK8CgCwSFw" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>