<http://forum.pspad.com/read.php?f=2&i=12419&t=12419> 
----------------------------------------------------------------

I was wondering if a couple of settings were available.  These features are
available and can be seen in the Eclipse Java editor, and it would be great
if I could get PSPad to do them as well.  You see, I can't get Eclipse to
edit files over an sftp connection, and I can't get WinSCP to open
Eclipse properly as an external editor.  So if I can figure out how to get
PSPad to do all the things I love in Eclipse, then I won't need Eclipse. 
Yay.

1)  Is there a setting so that whenever I type an opening curly brace
(like a function code block) and then hit enter, it automatically adds 2
new lines with a closing curly brace (all while still properly indented)? 
Ex.

some code;
some code;
   for (int x = 1; x < someval; x++) {
turns to this when I press enter:
some code;
some code;
   for (int x = 1; x < someval; x++) {
      | <- cursor positioned here (with proper indenting)
   }
2) When I have the correct option enabled, PSPad will auto insert a
closing " or ( or some other character.  Well, this is great and it saved
me a couple extra key strokes.  However, whenever I finish typing the
contents of these quotes, I have to reach over and find the right arrow
key so that I can move the cursor past the closing quote (bracket,
parenthese, whatever...).  In Eclipse, when it auto-inserts a character
like this, it shows a light green | character to the right of the inserted
character.  If I hit the TAB key, it will then skip past the end of the
auto-inserted character and I can continue coding.  This is extremely
convenient.  Is there an option like this in PSPad? Ex.

I type:system.out.println
Then I press the ( key and the closing ) gets generated
automatically:system.out.println(|)| <- My cursor is at the first |, the
second | represents where I will go if I press TAB
Then I type some contents:system.out.println(var1, var2, var3|)|
Then I press TAB:system.out.println(var1, var2, var3)|
Yay, my cursor moved passed the closing parenthese and I didn't have to
reach over and find the right arrow.

-- 
PSPad freeware editor http://www.pspad.com

Reply via email to