So, the longer we can remain in a single context, the more productive we can be. Just like in computer processing, context switching is costly for humans as well. This is something I’m going to call context switching, which has an actual definition in computer science, but for this purpose we can consider it any action that makes you switch contexts: going from one application to another, switching from typing to using the mouse, etc. So, in a few keystrokes, I’ve got my project folder and assets created and hooked up with Git, but from here I have to open the folder in Sublime Text by either dragging the folder to the application icon in the dock or opening the app and using the menus. For example, when creating a new project or prototype, you might do something like this: cd desktop Once you start doing stuff in the command line, it becomes awkward to have to jump between typing commands and using the mouse and GUI to do things in concert. So, in an effort to work smarter around development efforts, I’m going to capture a bunch of small tips, tricks, shortcuts, and tools that should help me (and other people) develop smarter workflows. I think I’ve been there for awhile now, but it just took some time to realize that. That philosophy has served me well, but eventually you reach the upper limit of what you can do with this methodology. When there are tons of things to do, just work harder. This post is the first in what will hopefully be a weekly tip or trick focused on workflow since I think many of these things can be helpful across the board for a lot of folks.įor a long time, I feel like I’ve relied too heavily on brute force to get a lot done. "Diff Files.Septem| Posted in Web Development, Workflow However, since I configured my trackpad in System Preferences to use the bottom-right corner of my trackpad as a right-click, that worked, displaying the contextual menu, with "Delete", "Reveal in Finder", and. I use my trackpad and often resort to Control-click as a right-click or secondary-click. You'll notice only one tab in the editing panel.Ĭontrol-click is not the same as right-click. Then, when you Command-click the second file, you'll see its contents, but again, neither are open. When you select the first file, you'll see its contents, but it's not open. Standard Mac shorcut here, ( single) click the first file, then Command-click the second file. In this case, be sure to close it before trying to compare. Double-clicking a file or making a modification to a file will automatically change a file's status to "Open". You can tell if a file is open if it's listed in the "Open Files" section at the top of the Side Bar. Single-clicking a file in the Side Bar does not open the file, but it does display it. You can either "View > Side Bar > Show Side Bar" or use the shortcut, Command-K, Command-B.įiles must be closed (ie, saved) to compare. You will now see two root-level folders in your sidebar. Then, select "Project > Add Folder to Project", navigate to the folder you want and click "Open". If the files you want to compare are not part of the same hierarchy, first open the folder containing one of the files. If Sublime/Mac is running, select "File > Open", navigate to the desired folder, don't select a file or folder and click "Open".Īdd a folder to a project.If Sublime/Mac is not running or if it's running but no windows are open, drag a folder onto the Sublime app.If you want to compare two files, they must be saved to disk and part of the current project. Many instructions above start with "Select File > Open Folders," but that doesn't exist on Sublime/Mac.įile compare works on a Project basis. There is no File > Open Folders on Sublime/Mac. I have successfully compared files that are UTF-8, ISO-8559-1, and Windows-1252. The file format does not need to be UTF-8. I had used it before on Sublime/Mac without any problems, but this time, it was trickier. I'm using Sublime Text 3 (build 3143) on Mac and have been trying for about 30 minutes to find this File Compare feature. (This is very similar to Marty F's reply, but addresses some issues from previous responses, combines several different suggestions and discusses the critical distinction that gave me problems at first.) UPDATE JAN 2018 - especially for Sublime/Mac
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |