Editing code, the cursor position is off by a line in IE9
When editing code in a template or script, the cursor position shows up one or two lines below the one where it actually is. I noticed this in a 4.9 site and ended up using FF for a while, then it inexplicably went away. Now I see the same thing happening in a new 4.11 site.
Any clues to what's happening? It must be me, or else I think it'd be a common topic on the forum. Either that or I'm the only total MS slut that doesn't like to crack open FF until I need FireBug.
I think the reason people don't notirce is probably because most use other code editors than those built into Umbraco. I recommend that you use a code editor like visual studio to edit your code - if you don't need to do any c# programming at all then you could use an editor like sublime text for instance :)
Thank you Jan. Does writing some Razor scripts make using VS worthwhile? I thought there were a lot of web-weenies like me using Umbo instead of WordMess. If not, there should be. What a marketing opportunity... I've never gotten to 3rd base with an U/VS setup, guess I'll have to bump that up on the to-do. Thanks again.
I think that any kind of code you write makes sense to write in a proper editor rather than using those built into Umbraco. The in-built tools can be usefull if you don't have access to the file-system but only have a login for Umbraco and you need to change some code on the site. However this is really not a best practice since most developers are using some sort of version control - so editing code on a live site means that the changes are not saved in source control and then the changes probably gets lost next time someone does a build to the live-site.
So yes I really think you should edit your code outside of Umbraco and yes it makes sense. If I remember correctly you should be able to benefit from using intellisense, which suggests functions etc. as you write your code (I'm really mostly an XSLT guy so have not been doing that much Razor yet) :).
Editing code, the cursor position is off by a line in IE9
When editing code in a template or script, the cursor position shows up one or two lines below the one where it actually is. I noticed this in a 4.9 site and ended up using FF for a while, then it inexplicably went away. Now I see the same thing happening in a new 4.11 site.
Any clues to what's happening? It must be me, or else I think it'd be a common topic on the forum. Either that or I'm the only total MS slut that doesn't like to crack open FF until I need FireBug.
Thanks much.
Hi Matthew
I think the reason people don't notirce is probably because most use other code editors than those built into Umbraco. I recommend that you use a code editor like visual studio to edit your code - if you don't need to do any c# programming at all then you could use an editor like sublime text for instance :)
If you consider the above a bug you're also more than welcome to submit it on the issue tracker here: http://issues.umbraco.org/issues/U4
/Jan
Thank you Jan. Does writing some Razor scripts make using VS worthwhile? I thought there were a lot of web-weenies like me using Umbo instead of WordMess. If not, there should be. What a marketing opportunity... I've never gotten to 3rd base with an U/VS setup, guess I'll have to bump that up on the to-do. Thanks again.
Hi Matthew
I think that any kind of code you write makes sense to write in a proper editor rather than using those built into Umbraco. The in-built tools can be usefull if you don't have access to the file-system but only have a login for Umbraco and you need to change some code on the site. However this is really not a best practice since most developers are using some sort of version control - so editing code on a live site means that the changes are not saved in source control and then the changes probably gets lost next time someone does a build to the live-site.
So yes I really think you should edit your code outside of Umbraco and yes it makes sense. If I remember correctly you should be able to benefit from using intellisense, which suggests functions etc. as you write your code (I'm really mostly an XSLT guy so have not been doing that much Razor yet) :).
Hope this helps.
/Jan
is working on a reply...