Results 1 to 9 of 9

Thread: Recommend me a code editor that works with keyboard short cuts

  1. #1
    Edwin is offline Hello World
    Join Date
    Nov 2009
    Posts
    47

    Default Recommend me a code editor that works with keyboard short cuts

    Hi Guys,

    I was wondering what type of editors you are using, to make things a little bit easier to write code.

    I'm looking for a simple editor that allows me to for example hold down down Shift + D and it would spit out :

    <div id=""></div>

    I would like to define my own short cuts as well.


    Any recommendations? :)

  2. #2
    dgwyer's Avatar
    dgwyer is offline Tavern Regular
    Join Date
    Jun 2010
    Location
    London, UK
    Posts
    230

    Default

    I have been toying with the idea of putting together a simple editor that highlights code, and allows you to maintain a code snippet library. Also, I may make it more WordPress-centric and include easy pasting of WordPress functions (via intellisense perhaps?).

    If it proved popular then I would probably release it as a proper application. But, as there are so many editors out there already it might just be a hobby project. :)

    Anyone else interested in anything like this? Features you would like to see you can't seem to find anywhere else, or perhaps there are some features you really love in various editors (but not in one place) and would like to see them all together under one application?

  3. #3
    andrea_r's Avatar
    andrea_r is offline WordPress Rockstar
    Join Date
    Jan 2009
    Location
    Eastern Canada
    Posts
    1,325

  4. #4
    Edwin is offline Hello World
    Join Date
    Nov 2009
    Posts
    47

    Default

    Quote Originally Posted by dgwyer View Post
    I have been toying with the idea of putting together a simple editor that highlights code, and allows you to maintain a code snippet library. Also, I may make it more WordPress-centric and include easy pasting of WordPress functions (via intellisense perhaps?).

    If it proved popular then I would probably release it as a proper application. But, as there are so many editors out there already it might just be a hobby project. :)

    Anyone else interested in anything like this? Features you would like to see you can't seem to find anywhere else, or perhaps there are some features you really love in various editors (but not in one place) and would like to see them all together under one application?
    I would be interested in this, because right now I haven't found a single straight forward editor that allows me to do a simple task as setting up a keyboard short cut to insert for example <div id=""></div> with a command of my choice.

    Thanks Andrea, but unfortunately that didn't really help me on my way.

  5. #5
    andrea_r's Avatar
    andrea_r is offline WordPress Rockstar
    Join Date
    Jan 2009
    Location
    Eastern Canada
    Posts
    1,325

    Default

    The first item in the link I left talked about Zen Coding - an editor plugin that allows you to shortcut common items pretty much like you mentioned.

    I know it;s not *keyboard* shortcuts, but it's still way shorter / faster.

  6. #6
    Utkarsh is offline Hello World
    Join Date
    Nov 2009
    Posts
    73

    Default

    Quote Originally Posted by dgwyer View Post
    I have been toying with the idea of putting together a simple editor that highlights code, and allows you to maintain a code snippet library. Also, I may make it more WordPress-centric and include easy pasting of WordPress functions (via intellisense perhaps?).

    If it proved popular then I would probably release it as a proper application. But, as there are so many editors out there already it might just be a hobby project. :)

    Anyone else interested in anything like this? Features you would like to see you can't seem to find anywhere else, or perhaps there are some features you really love in various editors (but not in one place) and would like to see them all together under one application?
    I've created a set of snippets for my own use in Vim. It goes something like

    snippet af
    add_filter( '${1:filter}', '${2:function}', ${3:10}, ${4:1} );
    snippet aa
    add_action( '${1:action}', '${2:function}', ${3:10}, ${4:1} );
    snippet apf
    apply_filters( '${1:filter}', ${2:param1}, ${3:param2} );
    snippet da
    do_action( '${1:action}' );
    snippet rf
    remove_filter( '${1:filter}', '${2:function}', ${3:10}, ${4:1} );
    snippet ra
    remove_action( '${1:action}', '${2:function}', ${3:10}, ${4:1} );
    and about a dozen more.

    Saves me a few minutes for every hour I code.

    Quote Originally Posted by andrea_r View Post
    The first item in the link I left talked about Zen Coding - an editor plugin that allows you to shortcut common items pretty much like you mentioned.

    I know it;s not *keyboard* shortcuts, but it's still way shorter / faster.
    +1 for Zen Coding. Been using it since the day it was released on Notepad++ and now on VIM.

  7. #7
    t31os's Avatar
    t31os is offline Hello World
    Join Date
    Feb 2010
    Location
    UK
    Posts
    23

    Default

    Notepad++ can use Macros, which in turn can be given shortcut keys, but i'd also suggest Zen Coding(works with Notepad++) having just watched the video and downloaded it, makes writing HTML a heck of alot faster using CSS like selectors..

    Example..

    You could write..
    Code:
    div#header>ul#nav>li.menu-item-$*5
    Then hit CTRL + E (or whatever hotkey it gives you)

    And you end up with..
    Code:
    <div id="header">
        <ul id="nav">
            <li class="menu-item-1"></li>
            <li class="menu-item-2"></li>
            <li class="menu-item-3"></li>
            <li class="menu-item-4"></li>
            <li class="menu-item-5"></li>
        </ul>
    </div>
    Can't believe i didn't know about Zen Coding before, been using CSS selectors for years, so this is just up my street... :)
    Last edited by t31os; 10-07-2010 at 10:10 AM. Reason: Add link to zen coding plugin page

  8. #8
    BrianLayman is offline Hello World
    Join Date
    Jul 2009
    Posts
    6

    Default

    I have Notepad++ macros configured to to neat stuff like look up the function call I am in the codex or published source code. It can be pretty slick...

  9. #9
    mmuro is offline Hello World
    Join Date
    Mar 2011
    Location
    Birmingham, AL
    Posts
    13

    Default

    It's probably too much for what you are trying to do, but you could use Snippets.

    http://mac.appstorm.net/how-to/produ...with-snippets/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •