I couldn't find shortcut to select entire line in Visual Studio 2019.
This feature is exactly the same as "CTRL + L" in VSCode.
For me, this is a very useful feature when using VS Code.
I want to use this feature somehow in VS2019.
I've tried to search in Keyboard Binding and Market Place.
I am new to F# and Visual Studio. I am following the F# tutorial provided by Visual Studio and the project runs fine, but whenever I try to highlight a line of code and perform "Send selection to F# Interactive" the window pulls up but nothing displays. I also do not have the ability to perform any actions in F# Interactive. Some background info:
I'm using a 2020 MacBook Pro and 2019 Visual Studio
I had previously installed Rider for class but then my professor switched to Visual Studio, not sure if having both installed causes a conflict?
Below is a video showing the VS tutorial file I'm working in and some of the problems I'm experiencing.
https://youtu.be/2hdBlm-h2i4
I appreciate any help as I have to keep using Visual Studio, F#, and F# Interactive for class and do not want to fall behind, thank you!
A couple of years ago, I wanted to add some open source C++ code to my C# project.
The C++ author, though a briliant physicist was a horrible programmer, and rewriting it into C# was proving very difficult. My solution at the time was to make a CLR DLL with the C++ code with a little extra code to convert to/from C# data types.
Problem solved. My C# program uses the CLR dll file and all is well.
Fast Forward to 2020 and I am considering upgrading from using Visual Studio 2015 to using Visual Studio 2017.
When I open the CLR DLL project I get an error:
The main .h file which was long ago created by Visual Studio and modified by me, will not even be displayed.
Has visual studio 2019 dropped support for creating and using C++ CLR DLL ?
Seems Visual Studio automatically commented out some of my include statements which I had written which contained the letters mfsk
Problem solved.
I am using Visual Studio 2017 Pro, and i am being driven crazy by the lack of syntax highlighting for the Jenkinsfile in my project. I am using the Declarative Syntax, but i just cant seem to find anything on getting this to work. My research says that its based on groovy, but i dont see a way to map it to that language either. Any help is appreciated.
This might not be a solution for everyone, but for me, it worked:
Jenkinsfiles are the only files without extension I am working with, therefore I opened
Tools -> Options -> Text Editor -> File Extensions
and then, I checked "Map extensionless files to:" and selected "Javascript Editor"
This does not require to install any extension and the display is great
I am in the same boat. Using Visual Studio 2017 Enterprise.
I found this extension recently for Visual Studio Code and this extension for Visual Studio.
Are there any good text editors for F#?
Instead of firing up resource-intensive Visual Studio, I would like to know if there are any text editors that can pretty-format F# code.
I am just getting started with F# and learning through FSI.exe with Notepad is giving me so much trouble...
Check this out:
F# Without Visual Studio
Not to be too much of a tease, but looking ahead, VS2010 uses a new rehostable editor component, you can hear some about it here: Hanselminutes Podcast 147 - The new WPF-based Text Editor in Visual Studio 2010 - Interview with a Dev
Anyway, this means that the F# editing experience in VS can, in theory, be completely decoupled from VS and hosted in a lightweight editor. Which means it's possible F# could ship a sample or something that's 'the VS editing experience' (tooltips, squiggles, intellisense, ...) without VS.
To be clear, we on the F# team don't yet have any concrete plans to ship such a thing, but the new internal factoring of VS and the editor and MEF and whatnot should make this easy to do (we've prototyped it over a weekend, and it mostly works). So hopefully look forward to cool things in the future.
Two other options:
SharpDevelop with F# plugin from Robert Pickering.
Visual Studio 2008 Shell with F# CTP
Any editor which will handle OCaml should handle F# -okay-. Mostly you just needs tabs. I'd recommend KomodoEdit, personally.
For notepad ++ someone made a file and put it up on the wiki:
http://notepad-plus.sourceforge.net/commun/userDefinedLang/userDefineLang_Fsharp.xml
One other option:
xacc.ide, a small ide that supports a bunch of .NET languages. But frankly, I haven't use it for a while since I'm really happy with Visual Studio 2008 (IntelliSense, interactive syntax checking, fsi, etc...).
You can setup Sublime Text 2 to work with F# as described here http://blog.kulman.sk/using-sublime-text-2-as-f-repl/
You can use Ionide package to integrate with Visual Studio Code (VS Code) or Atom editors.
Here is an article "F# Support in Visual Studio Code with Ionide"