Chen Jian's Java Blog 

Miscellaneous tips while developing in WSL (Windows Subsystem for Linux)

by Chen Jian


Posted on 2019-07-16 12:24 in Dev Tools


File change monitoring doesn't work, such as the auto-refresh of create-react-app

Use the following before your "npm start" or put it on env file:
CHOKIDAR_USEPOLLING=true

And if you are using Intellij, you need to explicitly "ctrl + s" to save the changes on your code files

Integrate beyond compare with git diff

export TMPDIR='/mnt/c/Users/yourName/AppData/Local/Temp'
alias gitdiff='git difftool -y --no-symlinks &'
#In your ~/.gitconfig  , add the following

[diff]
            tool = BCompare
[difftool "BCompare"]
            path = "/mnt/c/Program Files/Beyond Compare 4/BCompare.exe"
            cmd = \"/mnt/c/Program Files/Beyond Compare 4/BCompare.exe\" -expandall \"`echo $LOCAL | sed 's_/mnt/c_C:_'`\" \"`echo $REMOTE | sed 's_/mnt/c_C:_'`\"

To run it,

$ gitdiff

Install terminator

Click here



No one has commented yet.
该日志评论功能被禁用了。