doushi7805
doushi7805
2016-05-04 20:30

仅在打开文件上使用Intellij File Watcher

  • intellij-idea

I've been using the Intellij Golang plugin recently (it's great) but I've been running into an issue with the File Watchers I set up. My working directory is set to my $GOPATH directory and I would like to be able to run golint and goimports after I save a file I'm working on. The issue I have is if I use git to clone a repo the next time I open Intellij it runs both golint and goimports on all the newly imported files which can take a long time for large projects. Is there a way to set up File Watcher so it only watches a file that is currently open? I added a screenshot of my current settings below:

enter image description here

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答

为你推荐