Skip to main content

Enterprise Developer for Visual Studio - How to open source containing embedded hex

  • February 11, 2021
  • 0 replies
  • 0 views

Kim Hoskin
Problem :

Source files containing embedded hex open in a binary editor if using Visual Studio, making viewing/editing difficult. If double clicking the source from the Solution Explorer view it will attempt to open the source in the Eclipse IDE (if installed). 

 

Resolution :

-From the Visual Studio Solution Explorer view, right-click on the file and select Open With...
-Select Source Code (Text) Editor With Encoding from the list.
-Choose an encoding, for example Western European (Windows) - Codepage 1252.
-Now the source file can be opened in Visual Studio, however, this would need to be done every time the file is opened.
-Alternatively, choose Unicode (UTF-8 with signature), this will add the BOM (byte order mark) when the file is saved so subsequent opens are automatic.


#MFDS
#EnterpriseDeveloper

0 replies

Be the first to reply!