-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Code generation shortcut for Visual Studio
Lukas Schwarz edited this page Feb 4, 2018
·
4 revisions
This page contains instructions on setting up a keyboard shortcut in Visual Studio to generate code using Jenny.
Notice that the shortcut is not limited to the current solution: It's a 'global' setting.
Setup Jenny as described in this video
- Navigate to
Tools -> External Tools... - Press
Add - Enter path to Jenny.exe:
$(SolutionDir)\Jenny\Jenny.exe
- Enter arguments:
-
client gen -v(verbose log mode) or -
client gen -s(silent log mode)
-
- Enter inital directory:
$(SolutionDir)
- Name the external tool:
- Enter something like
jenny client geninto the Title text box
- Enter something like
- Use the visual studio output window instead of opening a cmd window
- Check
Use Output window
- Check
- Press the
Applybutton - A dialog might pop up stating
The command is not a valid executable. Would you like to change the command?- Press the
Nobutton
- Press the
Note the number of you external tool entry. This is not explicitly displayed - you have to count the entries from top to bottom. You will need the number in Step 2.
Close the external tools window.
- Navigate to
Tools -> Options -> Environment -> Keyboard - Enter
Tools.ExternalCommandinto theShow commands containing:search field - Select the entry with the number of your previously added external tool
- Click into the
Press shortcut keys:text box and press your desired key combination - Press the
Assignbutton - Press the
OKbutton to close the options window
- Run the
Jenny-Server.batthat you extracted in Step 0 alongside the Jenny folder - Press the key combination that you assigned in Step2
Guides: Introduction - Installation - Upgrading - FAQ - Cookbook - Contributing
Need Help? Ask a question on Discord or create an issue.
- The Basics
- Concepts
- Architecture / Patterns