Tip: Keeping Your Place In Code

As my document class files get larger and larger I tend to have a hard time keeping my place. Especially when I need to jump back and forth between a couple spots. So one trick I just naturally started to evolve was to add my own “bookmarks” into my code.

For example if I am working on a function called “showMessage” and I want to jump between the function and where it is being called I might do this:

[as3]//#
showMessage();

// blah blah blah other code
// 1000 lines later

//#
private function newMessage():void { }
[/as3]

This way I can just search for the # and keep jumping back and forth. If you were really ambitious you could derive a whole system from symbols

# = links

! = currently working on

% = work on later

Not perfect since a lot of symbols will be used by operators, but it felt like a good LifeHacker type of tip. I supposed you could always search for //! to avoid the operators.

Share:
  • Facebook
  • Twitter
  • RSS
  • StumbleUpon
  • Tumblr
  • Technorati

Related posts:

  • Undocumented setTimeout() I buddy of mine Danny Lee tipped me off to...
  • Code Snippets on Snipplr For those of you who don’t know about it, Snipplr...
  • Learning ActionScript 3.0 I have (shamefully) just begun teaching myself ActionScript 3.0 in...
  • From Code to Mechanics: I'm Stumped In my desire to use code to create artwork, I...
  • Xash for Flash I am not sure how widely known this program is,...


  • Leave a Reply

    Name
    (* required)
    Email Address
    ( * required - will not be published)
    Web Site
    Comment
    (* required)