SapphireSteel Forum
Welcome, Guest. Please login or register.
May 19, 2013, 10:02:28 AM

Login with username, password and session length
Search:     Advanced search
Welcome to the SapphireSteel forum - for discussion of the Ruby In Steel and Amethyst IDEs
3883 Posts in 799 Topics by 669 Members
Latest Member: m
* Home Help Search Login Register
+  SapphireSteel Forum
|-+  General
| |-+  Ruby In Steel
| | |-+  Feature Request: Def Snippet + code formatting + breakpoints in the views
« previous next »
Pages: [1] Print
Author Topic: Feature Request: Def Snippet + code formatting + breakpoints in the views  (Read 3200 times)
roman.heinrich
Registered User
Newbie
*
Posts: 5


« on: March 19, 2007, 10:40:50 AM »

I like using snippets a lot, but the def snippet (def - Tab) indents the end always to the beginning of the line, it's kinda annoying, would this be hard to fix? (don't thinks so, you have only to indent it to the same line column as the def - keyword)
The other features might be harder to implement, the code formatting feature works quite well in RadRails, but this maybe an Eclipse goodie, you can choose to format either the method or the module or the whole project.
And while I'm in the process, breakpoints in the view would be nice (that could be difficult). I'm not thinking these are  very important feats, but they would provide a smoother development experience, so to speak  Cool Thanks for the effort!
Logged
Huw Collingbourne
Administrator
Hero Member
*****
Posts: 933



« Reply #1 on: March 19, 2007, 10:51:08 AM »

I like using snippets a lot, but the def snippet (def - Tab) indents the end always to the beginning of the line, it's kinda annoying, would this be hard to fix? (don't thinks so, you have only to indent it to the same line column as the def - keyword)
We'll be going over all the formatting features shortly, looking for flaws of this sort. I'll add the 'end' alignment to our bug list.

Quote
The other features might be harder to implement, the code formatting feature works quite well in RadRails, but this maybe an Eclipse goodie, you can choose to format either the method or the module or the whole project.
How does this work? Do you mean you can, say, right-click inside a method and pick 'Format Method'? Currently we do whole document formatting Edit->Advanced->Format Document (or a hotkey which is Ctrl+E, D by default); or you can format a selection Edit->Advanced->Format Selection. If there are other useful ways of formatting code, please give us the details.

Quote
And while I'm in the process, breakpoints in the view would be nice (that could be difficult). I'm not thinking these are  very important feats, but they would provide a smoother development experience, so to speak  Cool Thanks for the effort!
Yes, that would be difficult.  Sad We've thought about doing this and, while it wouldn't be impossible, it's definitely not a quick fix. We are not making any promises about this but, suffice to say, it's something that we would like to be able to do (eventually)...
Logged
roman.heinrich
Registered User
Newbie
*
Posts: 5


« Reply #2 on: March 19, 2007, 01:19:25 PM »

Quote
Currently we do whole document formatting Edit->Advanced->Format Document (or a hotkey which is Ctrl+E, D by default); or you can format a selection Edit->Advanced->Format Selection. If there are other useful ways of formatting code, please give us the details.

Didn't know about that one. That pretty much is, what I wanted Tongue . Thanks again!

About the view-breakpoints: don't know, whether this is a useful tip, but this guy (http://gyre.bitscribe.net/)  is developing a web-based Rails-debugger, and in the screencast he is able to set breakpoints in the views. I wasn't able to install this correctly on Windows, but maybe it's worth a look for you. Cheers!
Logged
Huw Collingbourne
Administrator
Hero Member
*****
Posts: 933



« Reply #3 on: March 19, 2007, 01:40:46 PM »

About the view-breakpoints: don't know, whether this is a useful tip, but this guy (http://gyre.bitscribe.net/)  is developing a web-based Rails-debugger, and in the screencast he is able to set breakpoints in the views. I wasn't able to install this correctly on Windows, but maybe it's worth a look for you. Cheers!
I had a quick loook through that screencast. Unless it happened when I wasn't concentrating, I didn't see any breakpoints in the View (embedded Ruby), only in the controller (pure Ruby source) which we do already. Do they claim to debug into the View?
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!