How do I turn on Dev C++ IDE linting for C? - c++

I want the squiggly lines under my codes in Dev C++, is that feature available in Dev C++?

Dev-C++ capabilities are minimal and very limited. It does not have real-time syntax check but you can do it manually using ctrl+F9 shortcut or Execute->Syntax Check Current File.
By default it will change the error line background to color Maroon but you can change that with : Tools->Editor Options...->Colors->Error lines(top left scroll area) Then change the back/forecolors listed bellow it.
You also can change the Syntax Check shortcut to something more convenient, go to Tools->Configure Shortcuts... Find MainMenu > Execute > Syntax Check Current File then click on it and enter your desired keyword.

Related

Intellisense autocompletion of expressions to watch in watch window or debug console

Is it possible while debugging, and a breakpoint has been hit, to autocomplete variables in the current scope in the Debug Console or the Watch Window?
An example gif is attached of where I would hope to get some auto-completion suggestions.
Essentially, on typing just long, I would like to autocomplete to work here so that it suggests longish_variable_name that I can then possibly tab complete.
VSCode has, by default, CtrlSpace mapped to triggering autocompletion suggestions, but this only seems to work in the editor window.
Use the variable once in the debug window, and auto-complete will do the rest of the work for you ever after (given the variable name shouldn't be changed, or you need to use it in the debugger console again to get auto-completion suggestion.)
I have a test variable named very_very_long_var — but the debug window didn't suggest anything on the first go. It was presented once I used it the first time in that window.

How to fix "The parser is still parsing files" popup in codeblocks

So I have not changed any settings in my code blocks editor and yet this appears I am new to the code blocks editor and if anyone could explain how this could popup so I can fix it and I have heard people will disable code completion to fix this but I never had the problem with it on so
I have tried disabling code completion this did fix the problem but it normally wouldn't do this with code completion on and I don't want it off
Open Code Blocks settings screen
Click "Editor..."
On the left, choose "Code compliation"
Choose "C/C++ Parser"
Make sure the checkmark on "Use one parser for the whole workspace" is checked
Then after saving the changes restart your Code Blocks IDE and make project save it. After that your issue is resolved.
None of the solutions mentioned above helped me!
I found myself solution, try whether it works for you not!
settings -> Editor -> scroll down (left options) -> Code Completion -> C/C++ parser -> Use one parser per project Check this option -> Maximum allowed parsers keep it less mine worked when i keep it to 2
It seems that rebooting the program has fixed this problem... Also I uninstalled the Library finder which I had opened once by accident then closed the program not saving and changes to anything which then restored library finder and apparently fixed the issue...
This worked for me:
Create two C/C++ files. Build and run them. Go to the C/C++ file you've built first and try to write something. Now, your issue should be fixed.
There's a youtube video explaining this trick. You can watch this if you face any difficulty: https://www.youtube.com/watch?v=sduqmX_VXB8
It's very simple. Save the file declaring which type it is. If C++, save it as whatever.cpp and it's gonna work.
Your file name should start with lower case alphabet.
We have to simply do one thing i.e. stop the code completion.
Goto "Settings" menu --> "Editor" --> "General Settings" (Left Pallet) --> "Editor settings" tab --> uncheck the "Code completion" checkbox..
Save the setting and you are good to go.. now u will never get that pop-up again..

WebStorm wraps text not as expected

How can I configure WebStorm so that it wraps text near the restriction line but not at the window corner?
There's currently no native setting that can enable this directly.
However, someone wrote a plugin for this : WrapToColumn.

watch window in the debug is empty

I was trying to understand how to fix my watch window but didn't find any good answer(I'm using visual studio 2013).
I used the debugger and suddenly the watch window didn't show the values or the object i'm have in the block - actually it didn't show anything anymore.
Does anyone know how can it be fixed?
Many thanks!!!
Maby this will help you:
To open the QuickWatch dialog box with a variable added While in break
mode, right-click a variable name in the source window name and choose
QuickWatch. This automatically places the variable into the QuickWatch
dialog box.
Source
The Watch windows don't show anything by default, you need to add things to them to see the values. What might have happened in your case, is that either you deleted what you had by mistake, or you ran into a bug, where something got corrupted in your solution and they were lost.
If you want to see everything that is currently in scope, the Locals window is the way to go.
And if you want a superset of that (which has both current and previous statement), use the Autos window.
The QuickWatch dialog box is similar in concept to the Watch window, but QuickWatch can display only one variable or expression at a time
https://msdn.microsoft.com/en-us/library/bhawk8xd.aspx

How can I hide the mouse cursor?

I wanna ask if someone can provide me a c++ code in which I can hide/show the pointer of the mouse when pressing a specific key..
I found several codes written for only TURBO C++, none of which can be compiled and run using dev c++ or even visual c++..
I tried running the codes I found in Dev C++ but I only get lots of errors and incompatibilities..
I also found several articles that says I can use the function ShowCursor but it just wouldn't work..
In fact hiding the cursor can turn out to be quite a task, depending on what you want to achive. If you're programming a GUI-application using the WinAPI it is pretty easy.
Just calling ShowCursor(false); once might turn out not to work in some cases though, since the ShowCursor function only "sets an internal display counter". The cursor is displayed until this counter is smaller than 0 (see msdn on it). You could try something like this:
while(ShowCursor(false)>=0);
to ensure the counter gets below 0.
This will however only hide the cursor inside your applications window, if you're using newer Windows versions like Windows 7. Hiding the cursor all over the system could turn out to be a lot more difficult.
If you are programming a console application ShowCursor won't show any effect as far as I've tested it. Using the following code:
while(ShowCursor(false)>=0);
std::cout<<ShowCursor(false)<<std::endl;
std::cout<<ShowCursor(true)<<std::endl;
we can see, that the counter definitely is below 0, but still the cursor is displayed. I haven't come up with a solution to this so far.
If you look at the documentation for the SetCursor function, setting the cursor to a NULL handle (e.g SetCursor(NULL)) will remove the cursor from the screen.