DVT IDE for VS Code SystemVerilog User Guide
Rev. 22.1.23, 16 August 2022

Chapter 32. SCM Checkout Hook

You can instruct DVT to perform some actions on any read-only file that gets modified by direct editing or by refactoring:

  1. Create a checkout hook binary named "dvt_checkout_hook*" in the .dvt directory. To customize the location of the binary file, use the "Checkout Hook Binary" preference from File > Preferences > Settings > Extensions > DVT > SCM.

  2. In the newly created binary, add any command you wish to be performed on the read-only files that get modified.

  3. Simply start to modify a read-only file and it will get triggered automatically. Also, you can disable the checkout confirmation by enabling the "Automatically Checkout Files" preference from File > Preferences > Settings > Extensions > DVT > SCM.