When I press shift+F5, no command prompt shows up even though I'm told that's what is supposed to happen. Instead, the prompt flickers and then disappears almost instantly. Here's my code:
#include <stdio.h>
int main() {
printf("Wednesday!\n\a\a\a\a"); //printf() is a function
return 15;
}
I have no idea what to do, and couldn't find an explanation anywhere else.
Related
I use VS Code to read C# code and it always showed me tooltips (hints or whatever they're called). I could just hover the mouse cursor over the fragment of code and it told me if that's a class or method or anything else.
I'm not a programmer so that was helpful.
It also allowed me to click on the code fragment with the CTRL button pressed. It opened the related file to the code in an adjacent tab.
But then something happened and I can't do anything of the above. It makes work very uncomfortable.
Can you please give any advice as to how to return these functions?
I'm a newbie
I'm trying to zoom in using Ctrl+= but I'm getting a message "Unable to write into user settings. Please open the user settings to correct errors/warnings in it and try again."
Clicking on "Open Setting" is opening another file named "{} setting.json 1", the code in that file is:
#include <bits/stdc++.h>
using namespace std;
int32_t main() {
cout <<"Hello World!\n";
}
There is a red underline on #include
What should I do?
Welcome to stackoverflow, Nikhil!
For me Ctrl-shift-plus works to zoom in (hold control & shift, then press +, the plus button, which on the US standard keyboard shares a key with the equal sign). Then Ctrl with the minus button zooms back out.
Work for you?
Your settings file obviously contains some C++ code, that shouldn't be in there. Delete everything from the file and save it. This will remove the red "1" next to the file name, which is indicator that the file contains errors. Afterwards you should be able to set the zoom level again.
I'm using Julia on Visual Studio Code. I just found that the error trace is missing if I toggle bash up and down. If no toggle action is done, nothing went wrong, which is not possible for me.
Did anybody ever encounter this before? I'm sure it's a problem with Visual Studio Code because I tried toggle in another bash and the output is trimmed.
Taking this shell as example, a full output is what I need, but when I click 'toggle the panel' (marked red) to editor window and then return to shell, the full output is trimmed, like this. Most part will be lost, sometimes in the middle, sometimes at the beginning.
I am sorry if the question doesn't make sense, I didn't really know how to phrase it properly.
What I am trying to achieve is similar to how it works in the command prompt when running a python file. When I run a python file from the command prompt, the command prompt window will jump to the last outputted line during the running of the program, so what is currently being outputted is always visible. However in my current VS Code set up, the output window will not jump to the last line as it is printed, and I have to scroll through the output window to see what is happening with the program.
I am currently using the latest version of VS Code and using the code-runner extension as well. Please let me know if what I am asking does not really make sense.
Thanks
As far as I understand your question, I would like to answer it.
To Auto-Scroll to the last output, you can just click on the Lock Icon near the Clear Console icon.
I have a couple of Rainmeter skins on top of my taskbar that act as a cooler clock, and in order to keep the skins above the taskbar, I have the following code:
[Rainmeter]
Update=500
OnUpdateAction=!ZPos #ZAxis#
[Variables]
ZAxis=1
So that keeps the skins above the taskbar, but it also keeps it above things like youtube running fullscreen. I got an AutoHotKey script that will run a program when a window becomes fullscreen and when it closes fullscreen, so I told it to launch "%PathToRainmerer%\Rainmeter.exe" !SetVariable "ZAxis" "-1" Skin.ini and "1" on the un-fullscreen, but nothing happened.
I checked everything to make sure the AHK script was working, and I even tried to run Rainmeter.exe with the parameters using a shortcut, but nothing worked. I also set up a Meter with Text=#ZAxis# and it stayed at one. I'm guessing the issue is with the syntax, but I can't find proper documentation (probably because I'm so bad at researching). I can provide more details on polite request.
Please remember that kind and respectful comments are greatly appreciated.
Try "\pathtorainmeter\rainmeter.exe" !activateconfig "mainskin folder\skin subfolder" "skin.ini"
Worked for me