This will open a Sublime Text editor window each time you type "Subl" into Git Bash. Type "subl" (Leave off quotations) to start Sublime Text 3 Add the following to it:Įditor = 'C:/Program Files/Sublime Text 3/subl.exe' -project ~/.gitconfig.sublime-project -wait gitconfig file found in your home directory: Now you can call "subl" for instance, in Git BASH to open up a new Sublime Project in your current directory.Įdit the. This step is required for general Git BASH use. This creates a Git BASH alias called subl that we can now use in Git BASH for Windows, to easily open Sublime. Open up a text editor (ex: Notepad, Notepad++, Sublime Text, Geany, etc), and create a file called ".bash_profile" in your home directory.Īlias subl="/c/Program\ Files/Sublime\ Text\ 3/subl.exe" Hit "Ctrl+S" to save, and close out of the Sublime Text editor project settings. Set to true to insert spaces when tab is pressed The number of spaces a tab is considered equal to "rulers":, //72 is recommended by git for commit message content, and 50 for commit titles Columns in which to display vertical rulers Set to a value other than 0 to force wrapping at that column rather than the May be set to true, false, or "auto", where it will be disabled for Disables horizontal scrolling if enabled. Paste the following and "Ctrl+S" to save the settings: Now go to "Project" -> "Edit Project" to edit the project settings. "gitconfig.sublime-project" for the file name. Save it in your home directory, ex: "C:\Users\MY_USER_NAME\" for the location Go to "Project" -> "Save Project As." and choose a place to save it: "File" -> "New Window" to create a new anonymous project. We will be populating it with settings we want to use to edit git commit messages. The steps I will mentioned ONLY work when Sublime text 3 is installed there.ĭuring installation, when asked where you would like to install, click "browse" and change the folder from "C:\Program Files (x86)" to "C:\Program Files" merely by selecting the "Program Files" folder and clicking on "Select Folder" It is imperative that you place the program here while installing. Texmaker is a free, modern and cross-platform LaTeX editor for linux, macosx and windows systems that integrates many tools needed to develop documents with. MAKE SURE SUBLIME IS INSTALLED UNDER C:\PROGRAM FILES Here's a link to the original page on Stack Overflow:ġ. Also, I am working on a Windows 7 Laptop, and this got me working in that environment. After spending three days coming the Interwebs, I stumbled across this from Stack overflow. I found none of the answers to work effectively.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |