DevReplay for Visual Studio Code
A Visual Studio Code extension with that will suggest source code fix based on your own rule file.
- Command Line version is here
- GitHub bot version is here
- Install this extension!
- Create your own programming style(
./devreplay.json) on the root like bellow
(Recommend) Review Pattern Generator can generate your rule file automatically
"for $0 in range($1):"
"for $0 in six.moves.range($1):"
"condition": ["hello $1"],
"consequent": ["Hello $1!!!"],
This mean if your code has
range, it should be
xrange for the python2
And create your code like this.
for a in xrange(array.x):
- Edit a your vscode settings'
- Save your file or
Fix by DevReplay
It will be change
for a in six.moves.range(array.x):
This extension contributes the following settings:
devreplay.ruleFile: The absolute path to the devreplay rules file
devreplay.replayOnSave: Whether to check files when saved
- Plain Text
This package is made based on
We would like to thank the Support Center for Advanced Telecommunications (SCAT) Technology Research, Foundation.
This system was supported by JSPS KAKENHI Grant Numbers JP18H03222, JP17H00731, JP15H02683, and JP18KT0013.