While working with IntelliJ I used a shortcut wrongly and now I have a dark blue highlited line, which means nothing.
It is some sort of marker highlighting.
How can I get rid of it? See image.
If you were stepping through the code while using the debugger, current execution point line would be highlighted in a similar way (though, a different color is used by default):
Stopping the debugger should remove the line.
Related
A red underline appears in the cell almost every time I type a character, as seen in the image.
Is there a way to remove these red underlines?
Basically this is a code diagnostics feature of google colab, so whenever you write something and it has a typo/syntax mistake then it starts showing red wavy line. In nutshell, if there is no typo mistake and still shows red wavy line just run your cell and it execute properly.
Step to remove red underline:
Step 1. Click on Tools.
Step 2. Click on Settings.
Step 3. Select Editor.
Step 4. In Code Diagnostics
Select None
I'm trying to recall what it means when you try to place a breakpoint on a wire in LabVIEW, and it is pink colored instead of red. I am calling the LabVIEW VI in TestStand if that matters at all.
Thanks,
Usually it is displayed like this when one opens clone of reetrant VI. So original VI has breakpoint, and its clone also has breakpoint - but it is kind of dimmed because when you will remove it, anyway it will be there (because breakpoint then should be removed from the "original" VI).
Another option could be that VI is loaded from different context, thus you can not edit it.
Don't know how, I highlighted some lines in red in a source file inside my project in IntelliJ.
What this is used for? What's the meaning of this?
How can I deactivate it? I tried by closing and reopening the application and didn't work
Were just errors on SQL statements!
I didn't notice them partly because I am more used to underlined code when errors but once solved them, red highlight is gone!
IntelliJ IDEA has an inspection that checks for spelling. In the analysis overview, I can see how many spelling mistakes were found, e.g. 12 typos found. In the code they are highlighted using a wavy green line.
However, I find it very hard to look manually for those wavy lines. Is there a keyboard shortcut or a search function which will automatically skip to the next highlighted typo?
F2 and Shift + F2 shortcuts will navigate you to the Next / Previous highlighted error. You need to configure the error navigation first to Go to next problem instead of default Go to high priority problems option(from the context menu of editor right side bar):
See help for details. Another option is to use double click (F4 shortcut) from the Inspection Results window to go to the source.
IntelliJ IDEA 2016.3
If you want to fix all typos from the project, you can list all of them and iterate through them using double click (or F4 to open the source):
Analyze > Run Inspection by Name...
Type "Typo"
You will be able to see a list containing all typos grouped by file:
In Settings -> Editor -> Colors & Fonts -> General, you can add an 'Error stripe mark' color to Typo.
With the default settings of IntelliJ I find it difficult to spot the typos. So I do the following hack to spot and correct them once in a while.
Temporarily change inspection setting to show Typos as Errors.
IntelliJ then highlights the typos as Errors, making it much easier to spot them in the editor. I correct them and then revert the inspection setting changes. The changes can be kept permanently but I don't prefer that!
I have comments that gets balloon (PEP 8: Line too long ... > 120)
I wish there was a command that will wrap the lines with few keystrokes.
Right now, even if I type Alt+Enter and press enter on Reformat file, nothing actually changes. Is there a setting or plugin I could use to accomplish the formatting easily?
Under the Edit menu, there is a Fill Paragraph option, which does what I believe you want. You can assign a key command to this in Preferences, under Appearance & Behavior -> Keymap (search for "fill").
Personally, I choose first stroke Esc, second stroke Q, because that's what I've always used in Emacs...
Firstly, reformatting won't work, not in Python at least, where whitespace is important. PyCharm's "Wrap when typing reaches right margin" option is what you're looking for. Now this will not work when you copy and paste code, but in the places where it gives you trouble, just press enter, and it will work.
To be able to auto-reformat comments (and code, for that matter) to honor a right margin after the fact, go into Project Settings under Code Style and then further under Python. Click the Wrapping and Braces tab, and check the "Ensure right margin is not exceeded" checkbox.
Now if you select a region of lines and then run the Code/Reformat Code... command, PyCharm will do its best to wrap the comments or code appropriately.
You will probably have to do some tweaking of the results to suit your stylistic taste. For example, I wish PyCharm would do aggressive filling of text in block comments, at least optionally so.
PyCharm will not reformat code such that it becomes invalid Python, so sometimes it will still leave a line longer than the margin (120 or whatever you set under Project Settings/Code Style/General).
With recent PyCharm this now is located at "Editor -> Code Style", with the checkbox named "Wrap on typing"
The Screenshot shows PyCharm version 2016.2.1 Professional.
Updated Answer:
Use "soft wraps." You can search for it in the help bar.
View > Active Editor > Use Soft Wraps
It won't work for existing text or text that's copied in, but will for any newly typed text.