This question is locked. New answers and comments are not allowed.
Having recently upgraded to latest internal build (2010.3.1029.3) JustCode now automatically adds code blocks when you type a keyword like IF, P, S. Although I find this sometimes useful I also have a issues with it.
1. JustCode being a little to enthusiastic in adding code blocks.
When trying to add a C# compiler #IF directive JustCode thinks I want to add a IF block when I certainly don't.
After typing '#if' but before hitting space, with cursor right after #if. (VS nicely adds the #endif for me):
After hitting space:
When trying to write a Lambda expression or a Linq statement JustCode adds code blocks where it shouldn't.
Both cases before hitting space, with cursor right after the 's' in first and 'p' (before ')') in second
After hitting space:
And I was trying to write something like:
While typing this and creating examples in VS I came to the conclusion that no matter what the key phrase is and where it is in the code, except for in comments, after hitting space JustCode adds the corresponding code block. I can't even write:
After typing 'string s' and hitting space JustCode adds the struct block.
I think the simplest solution would be for JustCode to check whether or not there is any other text on the same line,.
2. While wrestling with JustCode being a little eager it found one more 'issue'. After JustCode adds the code block corresponding with a key phrase it's not possible to cancel/undo this. My first instinct was to hit Esc but that is 'Accept as it is' and as far as I found does exactly the same as hitting Enter. And Ctrl-Z (undo) didn't work either.
Is there a way to completely Undo the adding of a code block by JustCode with 1 keystroke?
3. Inprovement:
When I do want a IF code block and I hit Enter to finish I expected JustCode to place the cursor between the brackets which is 99% of the time where you want to be when adding a IF statement. Instead it stayed where it was, in my case just before the closing ')'. This is also the case for 'c' (class).
Besides these minor issues and annoyances I just love JustCode.
J-P
1. JustCode being a little to enthusiastic in adding code blocks.
When trying to add a C# compiler #IF directive JustCode thinks I want to add a IF block when I certainly don't.
After typing '#if' but before hitting space, with cursor right after #if. (VS nicely adds the #endif for me):
#if
#endif
#if (V1)
{
}
#endif
When trying to write a Lambda expression or a Linq statement JustCode adds code blocks where it shouldn't.
Both cases before hitting space, with cursor right after the 's' in first and 'p' (before ')') in second
var q = from s
var q = list.Select(p)
var q = from
struct
V1
{
}
var q = list.Select(
public
V1 V2
{
get
{
return
V3;
}
set
{
V3 = value;
}
})
var q = from s
in
list
where s.ToString() ==
"Bla"
select s;
var q = list.Select(p => p.ToString() ==
"Bla"
);
While typing this and creating examples in VS I came to the conclusion that no matter what the key phrase is and where it is in the code, except for in comments, after hitting space JustCode adds the corresponding code block. I can't even write:
string
s =
""
;
I think the simplest solution would be for JustCode to check whether or not there is any other text on the same line,.
2. While wrestling with JustCode being a little eager it found one more 'issue'. After JustCode adds the code block corresponding with a key phrase it's not possible to cancel/undo this. My first instinct was to hit Esc but that is 'Accept as it is' and as far as I found does exactly the same as hitting Enter. And Ctrl-Z (undo) didn't work either.
Is there a way to completely Undo the adding of a code block by JustCode with 1 keystroke?
3. Inprovement:
When I do want a IF code block and I hit Enter to finish I expected JustCode to place the cursor between the brackets which is 99% of the time where you want to be when adding a IF statement. Instead it stayed where it was, in my case just before the closing ')'. This is also the case for 'c' (class).
Besides these minor issues and annoyances I just love JustCode.
J-P