I want to set default file viewer in SourceTree. The current one now is Notepad which does not show line break properly (all codes are in one line).
Go to the General Tab in SourceTree Preferences. At the top of the section "Miscellaneous" there is a window to choose the "Project Folder".
SourceTree uses the default "Open With" application like Explorer. As far as I know other than changing the default application used by each file extension you cannot change the behavior of the menu item in SourceTree.
However...
You can add a custom action to achieve the same result using Tools | Options, Custom Actions tab:
This will appear under the Custom Actions menu. As far as I know you cannot add a shortcut key to custom actions.
The SourceTree blog has more info.
I had this same problem for my MacBook.
To have sourcetree Open selected version, or Open current version a file with your desired program, change the system-wide default app used to open the file type to your desired app:
using Finder, find a file with the same file type that you are trying to open via SourceTree
TIP: if cannot find file with same file type, can create one via Terminal with command:
touch file.filetype
right click said file in Finder
reference: https://www.laptopmag.com/articles/how-to-change-default-applications-mac
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With