Replies: 3 comments 4 replies
-
I think that the idea of improving selection is a great one, but worth noting that with this Ionide looses a feature of selecting something mid line and evaluating it. I'm not sure if it is a big deal. functionWithTwoArguments (anotherFunction arg) (anotherFunction2 arg2) My idea of solving this problem, that I want to explore is to provide a shortcut for evaluating paragraphs. let s = 0 let a = 1 // middle let c = 1 let a = 1 This comment was copied from #1723 I think the current best idea I have is to have different options:
And pick in the config. For me I like one shortcut sending to repl and I want to send the whole multiline functions (that's why I would love paragraph one). One line is also sometimes useful for me. I am also incredibly curious what other people experience and how the leverage the REPL for their benefits |
Beta Was this translation helpful? Give feedback.
-
I don't think we should change "send selection" command - ability to send only the part of the line seems to be important due to referential transparency. However, how about updating the "send the line" command to the behaviour proposed in PR? Send line currently checks only the start point of the selection and sends the single line, but expanding it to all the lines that are (even partially) covered by selection seems reasonable to me. @baronfel any opinion? |
Beta Was this translation helpful? Give feedback.
-
update after > 2 years - #2051 is just created to have a send selection extended to whole line command. |
Beta Was this translation helpful? Give feedback.
-
I created a simple PR #1723 to improve the behaviour of
fsi:send selection
.I also checked other F# IDEs about this:
TextMacros
extension (comment&uncomment to select the complete lines, and need to add custom command to trigger send selection);EditorSelectLine
&SendToFsi
; easier than VS)For me, I don't see any drawback of making such a change, and please correct me if that's wrong.
What do you think? Thanks
Beta Was this translation helpful? Give feedback.
All reactions