Is there a way to only reformat files I have checked out, without checking them in?
Answered
I'm sorry if this is obvious, but I can't figure out how to do this. . .
I'm using Perforce, and have my project setup with P4.
If I go to VCS | Commit Changes, it pops up a dialog that has a "Before Submit". On the left side of this, it has a number of cool options: Reformat Code, Optimize Imports, Scan With Checkstyle, etc.
I'm assuming this is only run over the checked out files?
If so, is there a way to run these on all my checked out files without actually checking in? At my company we have a separate commit process, so I can't simply do a P4 Submit. I need to call into custom tooling.
Thanks!
Please sign in to leave a comment.
Reformat dialog invoked on the project root has a scope setting. There is Changed Files scope. It will run on all the files that you have checked out and modified.