question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enable automatic insertion of closing quotes inside function calls

See original GitHub issue

Problem Description

I want the same behaviour as in jupyter notebook of automatic closing of quotes. I change the setting of spyder editor to enable automatic insertion of closing quotes.

It works fine while typing in the editor but does not works inside functions.

Could you help me how to resolve this issue!?

What steps will reproduce the problem?

What is the expected output? What do you see instead?

Paste Traceback/Error Below (if applicable)

import numpy as np
import matplotlib.pyplot as plt

a = np.linspace(0,10,2001)
b = np.cos(a*np.pi)

plt.plot(a, b)
plt.title(') # does not work here: only opening quotes

'' # works here: automatically closes the quotes

Package Versions

  • Spyder: 3.2.6
  • Python: 3.6.4
  • Qt:
  • PyQt:
  • Operating System: windows 10

Dependencies

PASTE DEPENDENCIES HERE

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

4reactions
bcolsencommented, Jan 28, 2019

No but after it’s merged I can look at refactoring to make one function work for both extensions

2reactions
CAM-Gerlachcommented, Mar 24, 2018

@Khalilsqu A leading character? According to my tests and confirming @ccordoba12 's suspicion above, it was the trailing character that was the problem, not the leading one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Annoying eclipse automatically closing quotes - Stack Overflow
To turn off auto quotes in Titanium Studio, under preferences -> Titanium Studio -> Editors -> uncheck "Auto-close matching character pairs".
Read more >
How do I make vim automatically complete parentheses and ...
Hi, I've noticed this feature in several IDEs, where if you enter a quotation mark, it will automatically put another quotation mark and...
Read more >
Smart Keys | PyCharm Documentation - JetBrains
Select this checkbox to have PyCharm automatically add a closing bracket for each typed opening bracket, respectively. Insert pair quote.
Read more >
Single Quote, Double Quote, and Backticks in MySQL Queries
For example: a string containing this ' will recognize the backslash as an instruction to cancel out the single quote's syntactical meaning and...
Read more >
about Quoting Rules - PowerShell | Microsoft Learn
To prevent the substitution of a variable value in a double-quoted string, use the backtick character ( ` ), which is the PowerShell...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found