Sublime Text 2 is a text editor for OS X, Linux and Windows, currently in beta.

-1

Automatic docbloc comments

Hari K T 12 years ago updated by Sven Axelsson 12 years ago 1
Automatic docbloc comments
 
 /**

adding the above and pressing enter should generate the docblox comments.

Eg :

    /**
     * @param type $hello
     * @param type $world
     * @return type
     */
    public function helloWorld( $hello , $world)
    {
    }
    
Netbeans has the functionality, not sure whether I am missing something in Sublime
-1

Toggle comment shortcut removes other comments

Romain Goncalves 12 years ago updated 12 years ago 0
Situation : 
  • File type : .js
  • I have a class description comment at the start of my file :
    /**
     * Class description
     */
  • I have a big comment block at the end of the file (classic /* ... */)

How to reproduce : with that similar file structure, select multiple lines, and use the "Toggle Comment" shortcut (Ctrl+/ on my machine)

At first you think nothing has happened, and if you try it again, it will comment your lines. But what you may not have noticed is the effects of the first shortcut use : it removed the "/*" at the start the file and the "*/" at the end, causing execution issues.


I can reproduce the bug on 2 computers (build 2126 on one and 2181 on the other) with the same effects. Both computers use Windows XP Pro x86

-1

unresponsive copying using Command+C shortcut in OS X

Eugene Wolfson 13 years ago updated by Jon Skinner 13 years ago 1
-1

vintage mode: paste over visual selection

Michael Seiwald 12 years ago updated 12 years ago 0
It's currently not possible to paste over a visual selection like in Vim with 'p'. I works with Ctrl+v btw.
-1

Control-drag selection to immediate next line

Caleb Anderson 12 years ago 0
I often select multiple lines to duplicate. When using the mouse I select my desired lines and control-click the selection and drag down. My intent is to duplicate the selection to the very next line. However, currently the caret is only allowed to get as close as the beginning of the next line, which breaks the flow. The expected behavior is to be allowed to start at the end of the selected text.


Example:
I have the following text:

"-I/path/to/myproject/includes/something",
"-I/path/to/myproject/includes/somethingelse",
"-I/path/to/myproject/includes/morethings",
"-I/path/to/myproject/includes/evenmorethings",
"Something different"

I want to add 4 more lines and change a small bit of each. I want this to be immediately after the first four lines.
I select the first four lines of text by clicking to the right of the end of the fourth line and dragging up to the blank space above (or the end of the line above). I then hold control and click on my selection and start dragging to duplicate the text.


The best output I can get is:

"-I/path/to/myproject/includes/something",
"-I/path/to/myproject/includes/somethingelse",
"-I/path/to/myproject/includes/morethings",
"-I/path/to/myproject/includes/evenmorethings",

"-I/path/to/myproject/includes/something",
"-I/path/to/myproject/includes/somethingelse",
"-I/path/to/myproject/includes/morethings",
"-I/path/to/myproject/includes/evenmorethings","Something different"


If I could position the caret at the end of the selection I could get:

"-I/path/to/myproject/includes/something",
"-I/path/to/myproject/includes/somethingelse",
"-I/path/to/myproject/includes/morethings",
"-I/path/to/myproject/includes/evenmorethings",
"-I/path/to/myproject/includes/something",
"-I/path/to/myproject/includes/somethingelse",
"-I/path/to/myproject/includes/morethings",
"-I/path/to/myproject/includes/evenmorethings",
"Something different"
-1

GBK格式乱码,怎么才能支持GBK编码啊?

陪心看海 12 years ago 0

请问有办法支持gbk编码吗?

-1

Search key pressed twice searches previous text

Michael Kleehammer 11 years ago 0

Would be nice if pressing incremental search key (e.g. ctrl+s) a 2nd time defaulted to the previous search.  If this can be accomplished with contexts, that would be good enough, but I'm not seeing it.


Emacs has a nice feature to make it quick to perform the same incremental search multiple times, which I do in cases where I search, make some edits, then move to the next instance.


Like ST, the first press displays the search panel with no text.  However, pressing again before inserting text automatically chooses the previous from history.  Since there is nothing to search for, which is normally what the 2nd press would do, there is nothing else useful the key could do, so this seems like a reasonable default.


Am I missing some easy keystrokes to get to search history?  Particularly without using arrow keys?

-1

Bigger resize-editor-pane active area

Robert McLarty 12 years ago updated 12 years ago 0
The area beside the scrollbars which activate the "resize editor pane" functionality is too small (less than 5px wide). I resize multiple panes regularly while working, so I always run into the difficulty of performing this action. I like how this area is big in Vim making it extremely easy to do this.

I also love Sublime's zoomed-out map of the opened file. Why couldn't the vertical scrollbar just disappear (leaving it's whole 20px width for easy resizing) and just use the Sublime file navigator as the only vertical scrolling control?
-1

can not type Vietnamese language

Phi Tống 12 years ago updated 12 years ago 0
althought i reopen file with encoding is UTF-8, but i can not type Vietnamese language, example i want type "ắ" but i can only type "ă"