Hi
I have used a bit of TextMate in the past. And one of the things that that I really liked in it in the past (and something that I’ve missed in other editors) is autocompletion of symbols.
Say for example, I have a piece of Rails code:
class CommentsController < ApplicationController
def create
@post = Post.find(params:post_id])
# The exclamation raises an error rather than returning false
@comment = @post.comments.new(params:comment])
@comment
if @comment.save
redirect_to @post
else
#render :partial => "/posts/comment_failed", :object => @comment
flash:error] = "Unable to add your comments... Make sure you fill in your name, email and some comment."
redirect_to @post
end
end
end
So, if I wanted to use the @comment symbol, I could simple type @c and press ESC key to cycle through all symbols/words that start with @c in file.
Does Sublime have similar functionality? I know finding words through (Command-p-#) and use autocompletion (ctrl-spacebar/option-ESC) for snippets is possible.
Is there a way for me to emulate the Textmate functionality of typing in the first few letters of a symbol/word, and then hitting a particular key repeatedly to autocomplete the word?
Thanks