I am looking for a way to prettify my AppleScripts when working in Sublime Text.
When working in the Script Editor, compiling the script (Cmd + K) also takes care of setting the correct indentation for the script.
Does anyone know a way to do this in Sublime Text as well?
According to Sublime's documentation, you can set your indents any way you like, and specify them according to whichever syntax you desire. Post back if you have difficulties managing your settings.
Related
I downloaded an install Sublime editor. I want to color the text when writing in specific programming languages, so that I can copy/Paste to Word. I followed this video: https://www.youtube.com/watch?v=H7Gv77BkTlE but nothing worked on me. Does anyone know how do I enable text coloring on Sublime? Otherwise is there any other editor that I can use in order to get colored text so that I can Copy/Paste it to Word?
Pasting from VSCode to word keeps the formatting and colors for me. You do have to make sure you paste with source formatting.
I just found out that there is an option at the bottom right of the Sublime Text to select the programming language. The menu to select other languages opens up when you click on it (C++ on the screenshot). This is on version 4143
Does anyone know of a way to completely disable any form of automatic formatting or indentation in the current version of Xcode? Essentially, as far as text editing, I want it to behave like a "dumb" editor, e.g. TextEdit or Notepad.
One of the advantage of static typed language is the tooling for refactoring. As for the Golang, I think simply a rename tool which can work across files is enough. Is there such a tool / plugin for sublime text editor?
Currently available approach:
Ctrl-D multi-cursor selection, works fine within a file.
gorename works in the command line. Is it possible to do the rename
in sublime (without switching to the command line and back)?
Search/replace over files is something Sublime Text supports I believe. Would there be anything wrong with that?
e: man subl
This is kind of a random question, but in Textmate, there was a really nice feature. You could highlight a URL, press a keyboard shortcut, and it would automatically create for you.
I just searched tirelessly for about a half hour trying to find a similar package that would do it, but I can't seem to think of what search term to even look for. Anyone know off the top of their head a package that does this? I really loved that feature; it would hit the other website, grab the title attribute, and drop it in for you.
Any advice would be much appreciated!
I don't think you can do that easily with standard sublime abilities. But I've found a package that is inspired by Textmate and it's called HyperlinkHelper.
Simply install via PackageControl, restart sublime and you are ready to go. The default keyboard shortcut for generating a hyperlink out of the current selection is STRG+ALT+L. Tested it in sublime 2 and works perfectly.
My question is similar to this one: How to highlight all occurrences of a word in an Emacs buffer
In Notepad++ editor, there's a convenient feature: if you select a word in your text (not necessarily a keyword), the word is highlighted throughout the text. Is there any similar way in a lightweight editor for Mac? I've tried Textwrangler and jedit, but they don't seem to have this very useful feature.
Thanks for all the tips. I've tried out the various alternatives and ended up finding that jEdit has a good plugin for this feature: The "Highlight (Buffer scope)" option in the "Highlight" plugi
The only Mac text editor I know of that does this is Xcode, but I wouldn't exactly describe this as "lightweight".
You could to this in TextMate - not out of the box - but you could implement it fairly easily with whatever scripting language youre good with (ruby is whats normally used). There might even already be a plugin/bundle in the repository.
I'm not sure how willing you are, but you can look into writing a highlight plug-in for textWrangler.
I think you'll need the BBE-sdk. Here's their blurb on developing plugins: http://www.barebones.com/support/develop/
vim, running in a Terminal is very lightweight and will do this.
vim file.txt
:set hlsearch
/word
If you only like GUI apps there is MacVim out there for downloading.