Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Python function call font color
#1
I'm quite new to Python, but I've noticed that writing code that uses a lot of function calls is quite difficult to read quickly, as no font distinction seems to be made between variables and functions. I'm not too sure if this is due to the IDEs that I'm using (Spyder and VS Code), but I've noticed that when I define a function in Python, then in the Spyder IDE the function's font is bold and black, and in VS Code using the Monokai color theme, the function's font is green. However, if I try and actually call the function, then its font is exactly the same as a normal variable's font. Is there any way that I can force a color change to take place when a Python function is called? I'm hoping to be able to have a similar format to C++ in VS Code, which gives function calls a different color to plain variables, and makes reading large bodies of code rather easy. Apologies, as this is a weird question to ask in the first place.
Quote
#2
Maybe this from VS Code docs helps: Customizing a Color Theme

Quote:To tune the editor's syntax highlighting colors, use editor.tokenColorCustomizations in your user settings settings.json file:
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  How to mock an object that is created during function call? Schlangenversteher 0 157 Jan-31-2020, 01:36 PM
Last Post: Schlangenversteher
  Is there a way to search for function call? mtran 2 126 Jan-14-2020, 02:07 AM
Last Post: mtran
  what would you call the input for the parameter(s) of a function you have defined? rix 3 191 Dec-16-2019, 12:04 AM
Last Post: rix
  Call to a print in a defined function leodavinci1990 1 164 Nov-20-2019, 01:45 AM
Last Post: ichabod801
  How can I call a c++ function using python HWDev 1 245 Oct-22-2019, 06:19 PM
Last Post: Larz60+
  Call pip3 from python folder build by me call pip3 from the /usr/bin Suryavarman 3 395 Oct-07-2019, 10:23 PM
Last Post: Suryavarman
  How to call function SriRajesh 1 229 Sep-09-2019, 05:13 PM
Last Post: ichabod801
  I'm trying to figure out whether this is a method or function call 357mag 2 449 Jul-04-2019, 01:43 AM
Last Post: ichabod801
  Call a Function contained in a Tuple SamGer 7 603 Jun-14-2019, 05:00 PM
Last Post: ThomasL
  You can call a function without it's arg's? GrooTheWanderer 6 635 Apr-16-2019, 09:18 PM
Last Post: ichabod801

Forum Jump:


Users browsing this thread: 1 Guest(s)