Created 05-22-2023 12:49 AM
Hi,
in our CDSW setup the autoindent feature uses a tab with a width of 2 spaces when creating a newline in a .py Python script.
E.g. on a newline after:
for i in range(n):
<- 2-spaces wide tab gets automatically added here
Is there a way to configure this to use 4 spaces instead of the tab?
Created 05-25-2023 04:50 AM
@DianaTorres@Gopinathany help on this would again be greatly appreciated 🙂
Created 05-25-2023 07:03 AM
Created 05-25-2023 07:10 AM
CDSW/CML uses brackets editor. You may have a look at the brackets documentations for further customisation needs.
Created on 06-13-2023 03:02 AM - edited 06-13-2023 03:05 AM
Thank you very much. This was of great help.
I read that one could edit the brackets.json to enable programming language-specific settings. Is something like outlined in this SO answer possible in the CDSW?
"language": { "html": { "spaceUnits": 4 }, "javascript": { "tabSize": 2 } }
https://stackoverflow.com/a/29808575/3107708
Edit: We are currently struggling to even find the brackets.json file in our CDSW. Is such a file available in principle? Should we create it and place it in a specific directory?
Created 07-06-2023 12:51 AM
Hi @Gopinath
We are currently struggling to find the brackets.json file in our CDSW. Is such a file available in principle or would we need to create it and place it in a specific directory?