fsprojects-archive / zzarchive-VisualFSharpPowerTools

[ARCHIVED] Power commands for F# in Visual Studio
http://fsprojects.github.io/VisualFSharpPowerTools/
Apache License 2.0
310 stars 77 forks source link

Feature-Request: Block selection #1490

Closed urbanhop closed 7 years ago

urbanhop commented 7 years ago

Would wish a command that selects the current block. That is the block the cursor is in. This would be in particular helpful when working on a block and sending that block frequently to Interactive. With such a command the current block could be executed in Interactive via 2 key-shortcuts: alt-blockselect + alt-bkspce .

example:

// ...

let inline increasing (a, b) = a > b

m.temperatures          // block begin
|> Seq.pairwise
|> Seq.map increasing   // executing cmd select-block while cursor is in this line 
|> Seq.indexed          // selects the whole block
|> print                // block end

// ...

see also my similar feature request in the Visual F# repo: https://github.com/Microsoft/visualfsharp/issues/2033

aaron-comyn commented 7 years ago

Lovely idea, as REPL efficiency is a huge productivity matter.

Just to expound on the request: selecting the current context for the current block would also be nice.

That is to say: if your current block is a sub function of a module it could be handy to send the entire module to FSI for recompilation. Great work, all!

vasily-kirichenko commented 7 years ago

This project has being merged with Visual F# Tools. All feature requests and bug reports should be sent there.