editing the script not possible
So im not sure if its meant to be possible or not but when im writing codes in your tutorial i cant click on the mistaken word and fix i can only click the end on a paragraph so i have to click at the end of the line of code and back arrow key the whole line to get to the problem please make it so u can click anywhere along the line of text hope that makes sense
Example in step 2 : You may have also noticed that the word "Hello" was missing in the last two messages. Let's fix that now. Modify the lines that print the message to the following:
i cant click next to the bracket and type in new command i have to click at the end of the line of code back arrow key to the desired area add new text and if i make a mistake do same again
Yes, this issue is still there, this happens to me mainly at the last line of code, (not sure if it's exactly the same from 2020)
- Machine: M1 pro Macbook Pro
- MacOS version: Sonoma 14.5
- First encounter this problem on Firefox 126.0.1, then proceeds to try it on other browsers.
- the screenshots below are based on https://learn.microsoft.com/en-us/training/modules/guided-project-calculate-print-student-grades/3-exercise-store-data
[First thought]
- For example:
-
- The last line of the code is line31, and I now I want to change all the 'j's to 'J's.
- From line 27-30 I can move the caret to anywhere I want with my cursor, for this case between j and e, I can do that without any problem.
- The problem is that I can't do it on line 31, regardless of where the caret is currently at, when I clicked on anywhere along line 31 the caret will jump to the end of the line.
[Second thought]
- maybe it occurs when the .net editor is out of focus and refocus again? After further trying, no it's not about focus.
[Final thought]
- I noticed it's the way how each line in the .net editor registers clicks from my cursor
- Scenario: I'm trying to highlight line 3,
-
- When the cursor moved to anywhere slightly below the middle part of line 3 it will consider that my cursor is now at line 4 and highlight line 4 as well.
-
- If I do it while making sure my cursor is at the middle or above from the middle of line 3, I'm all good
- This applies to when I'm just trying to click on each line
- Tried .net editor on Firefox, Chrome, Edge, Arc, Safari, and each of them registers clicks slightly different.
- [Update] just noticed this problem is not so apparent with Firefox (overall better experience), so it took me quite awhile to come to my final thought
- For my own way of understanding (which may be not exactly the case) is that this means that if I try to edit anything in last line of code (for example line 31) and if the cursor is at the bottom half of the line it will think that I'm actually clicking on the empty space below so the caret will automatically moves to the end of the line.
[Workaround]
- Current workaround for me is to always add one extra empty line at the end of the editor (or below last line of code)
- although it doesn't solve the problem mentioned in the above Scenario mentioned, it does make editing on last line of code easier.