I'm using sublime text 3.
When I make scss file, that is named to filename.scss.haml Automatically.
This issue easily solving this link(http://tosbourn.com/sublime-text-reading-sass-files-as-haml/)
but I cannot find "/Library/Application Support/Sublime Text 2/Packages/Rails/Ruby Haml.tmLanguage." files and .../Packages/Rails Directory is not exists...
How can I fix that problem...
I'm using sublime text 3.
http://tosbourn.com/sublime-text-reading-sass-files-as-haml/ says look in:
/Library/Application Support/Sublime Text 2/Packages/Rails/Ruby Haml.tmLanguage.
Wrong version, so I guess the fix to your problem would be use ST2 maybe? Or find a more updated reference.
Open a sass file
View > syntax > open all with current extension as... > SASS
Related
This question already has an answer here:
Sublime Text settings on Mac
(1 answer)
Closed 6 years ago.
I went into Finder, hit Command-F and searched my Mac for Preferences.sublime-settings but did not find it. It found a file I had saved in a non-used folder but did not pull up the actual file that I thought sublime would use. Where is it?
I ended up copy pasting the contents of the folder it did find into the sublime application manually. But I would have preferred to use a hard link to the file.
This is json/javascript file but from the extension you would not know this.
Update - Here is where we think it should be:
Use:
chflags nohidden ~/Library
and you will be able to browse Library in your home directory. You should find the file here:
~/Library/Application Support/Sublime Text 2/Users
Also, you can access this file directly from the Sublime Menu.
I've a file named config.properties in the var root folder. How do I edit this file and save it.
Every where it says to type this in terminal, it will open a text editor with admin access. But, its not opening for me
sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit
I've searching for how to do this for some time and I'm really tired, not finding a solution. Can someone be kind enough to help me?
Just use something like that to open file in TextEdit:
sudo open -e /var/tmp/mobile_installation.log.0
Additionally you can use any other text editor which can work with file rights correctly. I prefer Fraise editor.
It looks like Sublime Text 3 uses OSX-default version of Ruby in build mode.
I would like to change the version, since I'm using a newer one. I found some answers for privious version of sublime:
How to edit a native build system in Sublime Text 2?
Setting and changing build systems in Sublime Text 2
Ruby, Sublime Text 2 and RVM help please!
All of them are dealing with Ruby.sublime-build file (given that I have RVM installed), but I can't this file in Sublime Text 3. May be I should change /Users/Art/Library/Application Support/Sublime Text 3/Packages/User/Ruby.sublime-settings? But any manipulations with it didn't give me a result.
Any help would be really appreciated!
Here's what I did:
select "Sublime Text" > "Preferences" > "Browse Packages ..."
(this opens ~/Library/Application Support/Sublime Text 3/Packages)
open the User directory (create it if it doesn't exist)
inside User create a file Ruby.sublime-build with the following content (adjust the path):
{
"cmd": ["/your/path/to/bin/ruby", "$file"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.ruby"
}
Your directory structure should look like this:
~/
Library/
Application Support/
Sublime Text 3/
Packages/
User/
Ruby.sublime-build
I'm using Sublime text, and I'm sharing some snippets with coworkers. I would like to be abble to directly make sublime text go to this folder to find the snippets.
Do you know any good ways of doing it ?
create a share folder with your team (say /mnt/shared/snippets)
symlink that folder to your Sublime folder
ln -s /mnt/shared/snippets "~/Library/Application Support/Sublime Text 3/User/"
restart Sublime and it should pick up the snippets
I've got a problem with Sublime Text 2 in that when I start it it automatically tries to load a file that leads it to crash.
I can see that there are ways of changing the settings once it's loaded - how do I fix it when it won't finish start-up?
I'm running on Mac OSX (Mavericks).
For Sublime 3
on Mac, Auto Save session exists in this path
~/Library/Application Support/Sublime Text 3/Local. Just go to this path delete all the files. Sublime will start working fresh.
On Linux, Auto Save session exists in /home/<USER>/.config/sublime-text-3/Local. Delete all the files you'll be good to go fresh.
On Windows the path is %APPDATA%\Sublime Text 3\Local
You can try hunting around for the file causing the error. However, I'd recommend reverting your install (link) though rather than deleting, I'd just move it somewhere temporarily. Be sure to move your User folder out. After reverting, move the User folder back. If you used package control, it will grab all of the installed plugins again. If you didn't you will need to move those back manually. If it's a particular file that's causing issues (not a plugin) then you could also edit the Session file. It's a bit more involved but can be found in Application Support/Sublime Text 2/Settings.
If you could post the file causing the issue, we could probably tell you how to fix put it back into a working state. If it's a settings file, it might be as simple as malformed json. I'm unsure though as you didn't give much detail on the actual error.
So, I deleted both the Session.sublime_session and the Auto Save Session.sublime_session in the Settings folder and that allowed me to get it to run and not crash on startup.
Delete Session.sublime_session from ~/Library/Application Support/Sublime Text 3/Local.
rm ~/Library/Application\ Support/Sublime\ Text\ 3/Local/Session.sublime_session
Also:
Please don't delete all content in the ~/Library/Application Support/Sublime Text 3/Local folder as this will also delete your Licence. #kushdilip (Tried to add this as a comment to your post but didn't have enough reputation to do so.)
I would recommend using another text editor (such as using vim in the terminal) to view/edit the files in:
~/Library/Application Support/Sublime Text 2/Packages/Default/Preferences.sublime-settings
There are two other directories, but Default is probably where you want to start.
~/Library/Application Support/Sublime Text 2/Packages/User/Preferences.sublime-settings
~/Library/Application Support/Sublime Text 2/Packages/Vintage/Preferences.sublime-settings
(Make a backup before changing any files around!)
For subline text 2 on my Mac:
There is no directory named Local under ~/Library/Application Support/Sublime Text 2/, but there is strange hidden file .DS_Store, I remove it and sublime text don't crash anymore!
$ rm .DS_Store