Why not show chinese word in Smartface App Studio IDE? - smartface.io

Why,
function Page1_Self_OnShow() {
//Comment following block for removing navigationbar/actionbar sample
//Copy this code block to every page onShow
header.init(this); header.setTitle("Page1中国文字");
header.setRightItem("RItem");
header.setLeftItem();
this.statusBar.transparent = true; /**/
}
Chinese word not show in Smartface App Studio IDE?

There is a problem about the visuality of these kind of characters on Smartface desktop ide. But actually it works fine. About the visual problem, there is a reported bug and it will be fixed with the new versions of Smartface.
But for now, you can show chinese characters on device without any problem.
I copied your code (the below code):
function Page1_Self_OnShow() {
//Comment following block for removing navigationbar/actionbar sample
//Copy this code block to every page onShow
header.init(this);
header.setTitle("Page1中国文字");
header.setRightItem("RItem");
header.setLeftItem();
this.statusBar.transparent = true;
/**/
}
And this code block looks wrong on ide (this is the bug):
It should be setTitle("Page1中国文字"); but it is lack of the last " character.
As I said before this is only a visual bug.
When I run this app on device (by using device emulator or publish), it is seen as in the below screenshot:

Related

Black or blank screen coming after visual studio code update

I was using visual code and press update in the right side corner and after that Black or blank screen coming while i open the visual studio code.
I tried uninstall the version and install again but nothing work for me.
I resolved it by change the file at this location C:\Users\username.vscode
At this location i found
I have updated the argv file and make it like this :
// This configuration file allows you to pass permanent command line arguments to VS Code.
// Only a subset of arguments is currently supported to reduce the likelyhood of breaking
// the installation.
//
// PLEASE DO NOT CHANGE WITHOUT UNDERSTANDING THE IMPACT
//
// NOTE: Changing this file requires a restart of VS Code.
{
// Use software rendering instead of hardware accelerated rendering.
// This can help in cases where you see rendering issues in VS Code.
// "disable-hardware-acceleration": true,
// Enabled by default by VS Code to resolve color issues in the renderer
// See https://github.com/Microsoft/vscode/issues/51791 for details
"disable-color-correct-rendering": true,
}
this worked for me and after this i am able to use visual studio code.
Thanks

VS code cursor not showing in the template of Vue project

All of a sudden, I am facing this problem in my VS Code editor. If you look at the first picture, that is a code snipped of my VUE 3 project. Where ever I am clicking in the picture, the cursor is not appearing.
This is the same file with the other section, where the cursor seems to be fine. Its works smoothly...
Does anyone have any idea about this issue??
I also checked in Stack Overflow, some issues suggested reinstalling the VIM extension, whereas I don't have VIM installed in my docker environment.

Visual Studio Code Not Displaying Invisible Characters/Spaces

I am currently working on writing code for a Source Game Engine map file. I have issues with Visual Studio Code not displaying certain invisible characters.
When using notepad++, I can see there are invisible characters in between the lines:
But when I open it up in visual studio code, it's as if the invisible character doesn't exist.
This is what I see when using visual studio code:
I have asked my friends who also do the same thing (making Source Engine Maps) and they all don't have this issue. One of my friends sent me this image:
This is what he sees in his own editor, with squares representing the invisible character/space:
I've done a few things to try to fix this issue:
Changing fonts (I used a custom font but reset to default to see if it had any impact)
Changing encoding setting (UTF-8 was what my friends used but I tried tinkering around)
Changing editors (Tried Atom/Sublime but only Notepad++ even shows there being an invisible character)
Updated / reinstalled language packs
Enabling whitespaces
After everything, I still have the same issue. Are there other possible fixes/causes for this issue?
Fixed
I just had to enable Render Control Characters in visual studio code.

Xcode 10: Auto insert closing braces bug

In Xcode (swift file), I'm facing an issue where automatic insertion of closing brace is not working anymore.
Ex: when I write
func myFunc() {
and hit Enter, Xcode will not insert the closing brace, and I need to do it by myself (and I'm very angry about it...)
Yet, my settings seem to be good:
Preferences -> Text Editing tab -> "automatically insert closing braces" == true
It seems to happen for each file containing commented code, especially this (very common) piece of comment : //}
Configuration: Xcode Version 10.0 (10A255)
Steps to reproduce on a new Playground:
Copy and paste the following comment : //}
Then type : func test() {
Then hit enter
It definitely seems to be a bug in the text editor. Already filed with Apple bug reporter.
Can everyone reproduce the bug or is it due to some configs ? And if so, what can I do to fix it ?
I'm using Xcode 10.3. I've discovered if I have comment blocks in a file, then Xcode won't auto insert a closing bracket in that file.
/*
Temporary fix. Replace this...
*/
//
// ...with this
//
The problem was fixed by Apple in Xcode 10.1 (10B61)

Is it possible to preview code start in vs code?

Well i am coming from Visual Studio where there is a feature to see a preview of the start of any code that isn't in the editor. ex if you are down at the end of an if statement or end of a method in C#, or even tag closings in HTML.
Here is a pic of what i mean. And sorry i can't even search for that cause i don't know what such feature is called.
Any extension might be nice.
Edit: this is actually a Resharper Ultimate feature called highlight matching delimiter
This is not available in VS code.