I donated a software to a college. I found a bug and decided to add some Base64 Strings to restore default files if bug occurs and deletes some files which are:
The encoded binary of the default configuration file
The encoded binary of the main printing template
The encoded binary of the default data of certain department
Even the files are about 1-2 MB each one, I found that copying and pasting a Base64 String to visual studio lags the IDE and make it freeze a moment. (1.5 M characters aprox.)
Is it because Visual Studio tries to analyze and paint the regex for "String"? If I copy and paste this in notepad it takes no more than 2 seconds. Is it because of VS analyzing the String?
The IDE is Visual Studio Professional 2015.
Related
I am a big fan of Microsoft Visual Studio. I like the code folding, auto-completion, auto-formatting, and many more.
I am thinking that it will be good if I can abuse MS Visual Studio as an IDE for LaTeX users. Shortly speaking, is it possible? For the first step, I think making me possible to invoke LaTeX compiler and invoke PDF viewer from within Visual Studio is more than enough. But you can step further by allowing me to use auto-completion, etc.
Is there any idea?
LaTeX editors usually have setting to invoke LaTeX compilers and PDF viewers as follows. It might be useful for you.
For Visual Studio Code (VSC) use extension: "LaTeX Workshop".
On Windows: Install MiKTeX, then over MiKTeX Console install package "latexmk". Finally install Perl http://strawberryperl.com/
PDF gets rebuilt automatically on saving the .tex file with VSC.
For viewing the changing .pdf file in Windows "TeXworks" did work best from multiple viewers tried, because it does not lock the .pdf file against changes and quickly refreshes the view on changing pdf output.
Yes. It is possible. Use Visual Studio Code with LaTeX extension. And it is free of charge.
VSEW 2013 is changing the encoding of a file when it saves it - a problem that did not occur for me in VSEW 2012. I cannot remember whether I changed the config. to prevent this in VSEW 2012, or whether it worked as required by default.
In any case I cannot work out how to conserve the encoding, except for each file individually via File > Save As and explicitly setting the required encoding. It would be tedious (and very error-prone) to rely on this approach.
In particular, an HTML file originally encoded as UTF-8 without BOM (without signature) is saved as UTF-8 with BOM by VSEW 2013.
Is there any global setting to prevent VSEW 2013 from changing the encoding, or to set it always to use UTF-8 without BOM?
JPL
P.S. The free Fix File Encoding extension (FixFileEncoding_11.vsix) from Vlasov Studio does what is required (and more), but can be installed on Visual Studio Pro only, not the Express version. http://vlasovstudio.com/fix-file-encoding/index.html
You can install Fix File Encoding for VS2013. According to the site, it "automatically detects when a UTF-8 file is opened in Visual Studio and sets its encoding to UTF-8 without signature. If you don't edit the file, it remains unmodified. If you edit the file, it will be saved without the BOM."
It worked just fine to me. Hope it helps.
Using a new laptop at work, my Visual Studio 2010 JScript editor basically locks up whenever I open the coffee-script.js v1.2.0 (minimized) file. It basically consists of a single line that is about 170k characters long.
I have attempted turning off all of my JScript extensions (outlining, etc.) but it hasn't really affected the performance.
Currently my only solution is to Open With the Source Code (Text) Editor instead of the Script Editor. But as I do a lot of JavaScript at work I'm worried that this may be the harbinger of many other script editor problems on this laptop. I'd rather not have to work around opening minified files all the time.
Does anyone have any thoughts?
Has anyone seen this odd text rendering issue in VS2005 before?
image http://tinyurl.com/3y2ebze
The first line of using statements actually says "using System;". If I copy the line as it is displayed and paste into notepad, the text appears correctly, so clearly the character codes are correct. In addition, the solution compiles and runs correctly.
I was thinking it might be due to ClearCase using a different character encoding as all the solutions we're using were freshly checked-out yesterday on to a new build machine, but this is only happening in 2 of our ~30 solutions.
Incidentally the same .cs files when opened in VS2008 render correctly on this machine, could this be a corruption in VS2005?
Install latest service pack to VS2005.
Is there a way to force VS to use Unicode always, instead of weird ISO-something?
I'm working on a winapp csproject using Visual Studio 2008 on Vista (Polish locale). The problem appears when I build the project on Win Server 2003 (English locale) - then Polish diacritic is gone.
I investigated that the issue is caused by improper source file encoding. It looks that source files aren't using UTF-8 encoding.
Problem: Compiler launched from command line cannot process the source file because of international characters that I’ve just added.
Solution: Save source file explicitly in UTF-8 encoding to preserve international characters.
How To:
open the problematic file in Visual Studio.
on the File menu click “Advanced Save Options“
from “Encoding” combo select “Unicode (UTF-8 …“
click OK.
You’re set. Commit to please the build server and rest of the team waiting for green.
In the latest Visual Studio 2017 the interface is changed a bit and you have to chose File -> Save [filename] As…. Then in the opened dialog you can chose Save with Encoding….
I've had the same problems with VS2015 vb.net project and solved it by adding <CodePage>1250</CodePage> marker to your vbproj/csproj file. I did it after <SchemaVersion> marker, rebuilt the project and it worked for me. I've had trouble with polish letters such as ż,ą etc.
You can also try the UTF-8 - 65001 but I didn't check if it works.