Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Mal1t1a · Jan 30 at 03:41 PM · unity5settingstoolspreferences

How can I use VSCode as a diff/merge tool for Unity Collaborate?

Hello,

I'm trying to use Visual Studio Code as my Diff/Merge tool and I'm running into some issues regarding the arguments. I am currently running: Unity 2020.3.14f1


Right now, I go to Edit > Preferences > External Tools and change the Revision Control Diff/Merge setting to Custom Tool. I then proceed to browse to the location of my visual studio code installation: F:/Programs/Microsoft VS Code/Code.exe


Here is where the issue occurs. Awhile back, I had found that if I put #LEFT and #RIGHT as the arguments, Unity would replace them with the respective files (I had previously tried #ABSLEFT and #ABSRIGHT which didn't work).

So in the field: Two-way diff command line I would simply fill in: -d #LEFT #RIGHT


By doing so, I would click the View Diff button in Unity Collaborate and it would compare both files side-by-side (this feature is built-in to vscode).


My issue is that this no longer works. VSCode just opens up a new window but there is no files being compared like before. I'm not sure if the argument names have changed but anything I have tried did not work. How can I use VSCode as the diff/merge tool again for Unity?


I have been using these as references:

  • https://docs.unity3d.com/2020.1/Documentation/Manual/Preferences.html#External-Tools

  • https://docs.unity3d.com/2021.1/Documentation/ScriptReference/EditorUtility.SetCustomDiffTool.html

  • https://docs.unity3d.com/2020.3/Documentation/Manual/SmartMerge.html

As my references for what parameters to use.


Here is an image of the configuration that no longer works: broken_confugration

screenshot-2022-01-19-080155.png (13.0 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by gjf · Jan 30 at 03:41 PM

I'm not near my dev box to try it, but from looking at the parameters used by SetCustomDiffTool, it looks like you might not need the -d.

Did you try that?

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Mal1t1a · Feb 01 at 06:49 PM 0
Share

Thanks for your reply gjf,

Unfortunately, the -d parameter is required for vscode to recognize that you are comparing two files for differences. However, just as a precaution, I did try removing the specified parameter using just #LEFT and #RIGHT as well as changing them to: #ABSLEFT and #ABSRIGHT

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

156 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Why Preferences get lost after I close Unity? 0 Answers

Changing scene messes up lights 6 Answers

How can I delete an existing collaborate project ? 1 Answer

How can i change the unit grid to pixel grid ? 0 Answers

Unity 5.6, Testrunner, Edit mode, how to run tests automatically on compile 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges