Is there a way to remove red underlines in colab cell? - google-colaboratory

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

Related

Source file lines highlighted in red in Intellij

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!

unable to create step definitions for scenario outline features

I am facing rather a strange situation here. I am unable to create a step definition for the scenario outline features in intellij. Alt+Enter wouldn't work and there is no lightbuld drop down either. the moment i remove the double quotes and greater than and less than symbols (pardon my jargon here, I couldn't find any other words to explain them), the lightbuld appears again. quite strange really. not sure if the 2017 intellij update has caused this.
any help much appreciated!
Scenario Outline : test logins
Given I am logged in as "<user>"
Examples:
|User|
|person1|
|person2|
When I click on the Given, I don't see the yellow bulb
And clicking Alt+Enter wouldn't give any options to create step definitions
. however, if i were to remove the "< >" the yellow bulb appears and clicking Alt+Enter works fine.

IntelliJ blue line highlight showing

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.

visual studio editor expand collapse widgets are gone

The plus / minus signs are gone to expand / collapse regions. The vertical lines to indicate regions are gone too.
The regions are collapsing and all the commands under edit, outlining work fine.
It's just I have to double click on the collapsed region to expand and there's no way to collapse a region with the mouse. Only the shortcut keys (ctrl m, m) or the menu will do it.
I swear it was right this morning but I did something to mess it up. I can't find any option in tools to fix it either.
UPDATE
Now, some files are doing this and other files (both opened at same time) are not doing it. If anyone can explain, I'm all ears.
Press ctrl+, (control plus semicolon) to open the settings. And type Folding Strategy in the setting's search bar. It is set to auto by default. You can set it to always for the controls to be visible at all times, otherwise, it shows only on mouse over.
This same thing happens to me multiple times a day using VS.NET 2015 Pro version 14.0.24720.00 Update 1. Restarting the IDE always restores normal function for a while but the problem always returns, seemingly at random.
UPDATE:
I tried changing the theme from dark to blue and it restored the outlining. I then changed back to dark from blue and the outlining continued to work normally. Still a pain but definitely a lot faster than restarting the IDE.
It happened with me also. One file was just fine and other file (js) was not. I searched it a lot.
Try selecting a method/if check etc and press ctrl+M+H which is short cut for right click outlining > Hide Selection.
You can do it on the whole document as well.
This might be helpful when working on a file which has too much code in it and you are going through different functions again and again. It is painful with scrolling mouse for so long.
You can use short cut for for moving at the start of the method or at the end of the method with the following :
select parenthesis { start or end } and press ctrl+}
Hope this helps.
It works again.
I closed all windows and reopened my code file.
Now it shows the plus minus glyphs again.
I know this is an old post, but I wanted to share a quick solution. if you right click and hover over 'Outlining' and then click 'Collapse to Definition', the widget comes back. Then just press [ctrl] + z to undo and continue where you left off.
With Golang, if the code has some syntactic mistakes that would prevent it from compiling, the language server cannot decide which parts of the code are collapsible, and which not.
Therefore the solution is either switching to the Folding Strategy in VSCode settings to indentation folding, or fixing the syntactic errors.
Simple solution : CTRL + M + O, then CTRL + Z
Thanks to SparrowEatsHawk

Wrapping comments with line breaks in PyCharm

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.