Visual Studio shows syntax error after notepad++ edit .py file - visual-studio-2013

Endcoding is utf-8 without BOM.
Actually I tried every encoding, but it doesn't solve problem. I don't know whats wrong.
How can I fix it?
Thanks

This is inconsistent whitespace type of thing. At Notepad++ Settings->Preferences>Tab Settings check "Replace by space". The problem fixed. Now I enjoy Notepad++.

Related

Unity2020.3.9f1c1 Hold On(busy for 03:29)

This thing is a bit annoying.
How do I get rid of it.
Whenever I open a project and open a C # file in Visual Studio.
First, a dialog box will appear saying that Visual Studio is being opened.
Then this dialog box will always be displayed.
And it won't go away.
I could just ignore it and continue with Unity.
But it's still a little annoying.
This is not a very serious problem.
But it's really annoying.
I searched Google for a long time and couldn't find the answer.
I hope someone can give me some hints.
Disable Compress Assets on Import for faster loading.
Unity Documentation
And move project to a SSD or M.2
I changed the project name from Chinese to English.
Now the problem is solved.
This was not an issue in previous 2019 versions of Unity.
So I think it's a bug.
Make sure your project path and project name contains only English letters, this should help.
I had the same issue on Unity 2020.3.35f1. This helped me out.

How can I fix this Visual Studio bug?

There are some functions when I make couple of new lines after them, I get this white line between the functions. Does someone know how to fix this? It happens to me a lot, and I searched for this bug on the internet but didn't found any answer.
Thank you in advance.
Go to:
Tools->Options->Text Editor->General
Uncheck "Show Structure Guidlines"

Visual Studio displaying UTF-8 (without BOM) as ISO 8859-1 (characters all messed up)

I have no clue what happened, and i uninstalled pretty much everything on my PC and reinstalled VS 2015, but UTF-8 files (without BOM) display all messed up in VS now, as before they would work just fine.
If i save the file WITH BOM, all is well ..but that's not the goal.
If i open the file in another editor, it displays that the file is very well a UTF-8 file, and the content displays fine ..only VS is messed up.
Even fixing the characters and then doing the usual save-as, and choosing utf-8 without bom, only works as long as i don't close/reopen VS ..once i do, it's all messed up again.
It seems like everytime VS opens a file thats in UTF-8 (without BOM), VS opens it as if it where in 8859-1
Any ideas anyone ? Thanks !
Visual Studio:
Notepad++
After lots of pains, reinstalls, etc, i finally figuerd it out.
I really don't remember having to have to check this in the past, but apparently you have to tell VS to autodetect utf-8 files without signature:
Not sure if this was checked in the past, is some install unchecked it, or whatever ..in any case this fixes the issue.

Removing Unicode character in Xcode

I often use OneNote for sample/template code which I can refer for any project. But When I copy from OneNote to Xcode I get below warning "Treating Unicode character as whitespace".
Though this is just a warning I like to see my code editor window warnings free. Is there any way to replace these Unicode character?
That happens to me, even converting the unicode text format didn't resolve this issue.
For a (hacky) solution, paste your code in apple-mail new message first, then copy and paste to Xcode, will correct this issue.

How to make Ctrl+V work in CLion

I am having difficulty getting Ctrl+V to paste code in CLion (I am using version 1.1.1 for Windows). When I try to paste code copied using Ctrl+C from e.g. a website or another program, it only seems to work occasionally. Usually it pastes a piece of text that was not the most recently copied.
I use other JetBrains IDEs (IntelliJ IDEA, PyCharm) and have never had any problems with something so basic.
Has anybody else encountered this problem and found a solution to it?
I had the same problem and this is the way I fixed it:
Ctrl+Shift+V (brings up the clipboard history)
Delete all entries
Recopy what you wanted to paste from outside CLion
Try pasting again
Let me know if it didn't work for you so I can see if there is some step you are missing. Hope this helps!
I had the same problem and this is the way I fixed it:
Go to: Settings > plugins and disable 'ideaVim' plugin

Resources