Questions tagged [code]

For Questions related to code - the default text and code editor shipped with elementary OS

Filter by
Sorted by
Tagged with
14 votes
1 answer
1k views

Can't open a new tab or new file on scratch

I can't open a new tab or new file in Scratch. Nothing happens when I click on the + icon and the following image occurs when I close all documents and select "New File". Running scratch from the ...
Bruno Miranda's user avatar
12 votes
3 answers
2k views

How can I clear currently opened files in Scratch?

Whenever I try and open Scratch, it tries to load the files I previously had open. While I want to keep the behaviour, one of the files I opened was an SVG of several MBs. As a result, Scratch now ...
Lewis Goddard's user avatar
  • 4,939
10 votes
1 answer
1k views

How can I add a color scheme to Scratch?

Scratch comes with several color schemes by default. I can choose between them in Preferences > Interface. How can I add my own custom color schemes?
Daniel Foré's user avatar
  • 9,734
10 votes
1 answer
683 views

How can I make Scratch execute scripts

I want to use the scratch text editor to execute python3 scripts. Is there a way to do this ?
Saurabh Mishra's user avatar
10 votes
3 answers
1k views

How can I purge Scratch's configuration and / or re-install it?

Scratch hasn't worked for the last two months, I can't edit files:
alonsocn's user avatar
  • 303
7 votes
4 answers
7k views

How can I launch a command from terminal and then close the terminal?

I ran scratch-text-editor in terminal, but now I want to close the terminal without closing scratch. Is this possible, if so; how?
user3's user avatar
  • 1,059
5 votes
2 answers
6k views

Why can I not use Scratch text editor to create files from the Terminal?

Let's say I want to create a .desktop file in /usr/share/applications and I do something like sudo -i gedit /usr/share/applications/cipricus.desktop This will open that file in gedit. If I try to ...
user avatar
4 votes
2 answers
548 views

Scratch is not responding when I try to edit a file

When I try to open Scratch, a window appears and I need to use the "force close" option. How may I solve this problem? I really like the Scratch UI, so I want to use this application. When try to ...
MH Raihan's user avatar
  • 103
4 votes
1 answer
870 views

How to develop extensions for Code?

How can I develop an Extension for Code. I want to recreate atom's pigments package into Code.
Carlos Flores's user avatar
3 votes
1 answer
180 views

Configure Code to forget opened files

I use Code a lot, and I know that restoring apps' state is a core elementary OS design principle. But I find myself bugged by the fact that every time I open Code I am presented with a huge list of ...
Vlad's user avatar
  • 2,205
3 votes
2 answers
68 views

Make Scratch stop asking to save a file before closing a file [closed]

How can I make Scratch stop asking to save before closing a file, while I make no changes? This happens when I did Preferences > Behavior > radio button off 'Save files when changed'. Thank-you!
1withoutasecond's user avatar
3 votes
1 answer
367 views

How to modify scratch text editor bracket completion plugin?

I want to modify the brackets completion plugin but I can't find a way, is even possible to do so? or I have to write a new plugin?
SomeNI's user avatar
  • 31
2 votes
1 answer
1k views

Dark theme on Elementary Code instead of "Solarized Dark"

I would like to know if there is any possibility to change the configuration in Code App to set a Dark Theme instead of "Solarized Dark" or if there is any plugin to set a dark theme in Code App. ...
NijoSan's user avatar
  • 21
2 votes
3 answers
173 views

Prevent Scratch from making files with tilde

Everytime I edit something in Scratch, it creates a file with the same name ending with a tilde (~). How can I prevent this? This is really annoying while working with Git.
thomasberends's user avatar
2 votes
2 answers
1k views

code text editor problem in elementary os juno

I have another problem but with the code editor this time it does not let me create a new tab even when I right click and click new tab nothing happens I tried uninstalling it and installing it ...
pole's user avatar
  • 91
2 votes
1 answer
210 views

how can I add indents to code in scratch manually or automatically?

How do I manually add indentations in scratch ? auto indentation does not seem to be working for me. I have tried Alt+Ctrl+F and right arrow key like on some other text editors. Is this a bug? any ...
Felipe Simmons's user avatar
2 votes
1 answer
2k views

Where does Scratch saves temporary files?

I've set Scratch to show a welcome screen every time I open it so it doesn't show what I was doing previously. However, I just accidentally closed it and lost something I didn't save that I want to ...
Maccer's user avatar
  • 1,984
2 votes
2 answers
587 views

How do I find shortcuts to text editor Scratch?

Hi I would like to know how to change between the in-build terminal and text editor tabs without mouse in scratch.
David's user avatar
  • 23
2 votes
1 answer
97 views

Scratch "tab" option [closed]

So by default Scratch comes with the option that changes your tabs from being tabs to just spaces. Now, this works fine whilst within Scratch, and i'm not arguing the fact that this silly option is ...
Mrpopo666's user avatar
  • 112
2 votes
1 answer
148 views

io.elementary.code wont run on juno

i have one problem with my Code, i cant run it from terminal but from GUI sometimes work sometimes wont open and have some errors when open, i am reinstalled it couple of times but nothing, i was ...
Miloš Stevanović's user avatar
2 votes
0 answers
140 views

Print from Scratch as it looks in the editor [closed]

How do I print (to a file) from Scratch editor as it looks (mono-scpaced and syntax highlighted)?
Sai SL's user avatar
  • 21
2 votes
1 answer
221 views

Can you port elementary's default apps to Ubuntu?

So is it possible to port apps like Scratch to a stock version of Ubuntu and if so where should I look to get started? As far as I can tell it should be possible since Scratch uses GTK which works ...
Lasse Jacobs's user avatar
1 vote
1 answer
2k views

How To Configure the Terminal in Code

The question says it all. I would like to configure the integrated terminal of Code (especially get rid of some lurid colours), but I can't find any option to do so, nor any configuration file. How ...
user188827's user avatar
1 vote
1 answer
402 views

How to write plugin for scratch text editor from elementary os?

I've been using scratch for quite some time and its features as an IDE are very limited. So I was wondering how to develop/install new third party plugins for it but I was unable to find any ...
Prakhar Pal's user avatar
1 vote
1 answer
156 views

Code - Spell check extension - where to add/remove dictionaries?

I would like to use spell check extension in Code but have not find any place, how to add/remove languages (dictionaries). Can you help me, where is the config for this extension, and/or where to ...
Petr's user avatar
  • 33
1 vote
1 answer
90 views

How to toggle text wrapping in Code?

I'm using Code to view and edit tab separated files, composed by long entries. When Code breaks the lines, it messes with my view of the file. How can I turn off text wrapping?
Daniel Gutiérrez's user avatar
1 vote
1 answer
163 views

How can I print from within the Code app? [closed]

I cannot seem to find a button or selection in the Code application to print an open document.
user18432's user avatar
1 vote
2 answers
595 views

What keyboard shortcuts are available in Code?

What keyboard shortcuts are available for actions like manipulating files and directories / projects, manipulating code / text, showing / hiding features, etc.
Dane Rossenrode's user avatar
1 vote
1 answer
697 views

io.elementary.code application name

First of all, I want to thank you guys for all your hard work. I really enjoy the consistency and fluidity of Elementary OS. The custom basic applications follow those patterns nicely and they are ...
user15368's user avatar
1 vote
1 answer
263 views

How to change Text Color in Scratch Freya built in text editor?

How to change the color of texts in the scratch default text editor. It looks grey, and few other colors. I want to change it like dark black and red, blue like need to change few color schemes. Is ...
Kvvaradha's user avatar
  • 631
1 vote
1 answer
163 views

Why does the trash can in Plank open Code instead of Files?

(Left) Clicking on the trash can in Plank, or right clicking on it and selecting "Open Trash" opens Code--the text editor--instead of Files. My first thought was to check if any nonsense ...
Que Quotion's user avatar
1 vote
1 answer
136 views

Code don't work

I made this code, but it doesn't work correctly. The window is created, but the button does not appear. I do not receive any error reports. Would anyone know why? public class MyApp : Gtk.Application ...
Felipe Cristiano's user avatar
1 vote
2 answers
91 views

Code - How to "search in project"

In most editors it's possible to perform a search within the open folder/project. How can this be achieved with Code in Juno, if at all possible?
wout's user avatar
  • 183
1 vote
2 answers
2k views

How to change the Encoding? (Greek- ISO-8859-7)

Can I choose that encoding instead of the default? I can open a file with similar apps. If I open the same file with Scratch, it displays non-readable characters. I cannot find the appropriate setting ...
Dimitrios's user avatar
1 vote
1 answer
41 views

How can I use scratch to search through tags (function definitions) in a project? [closed]

When working with sublime I can search through tags using f12 and in vim also there is Ctrl+]. How do I get a similar functionality in 'Scratch', the native editor of elementary OS?
Gaurav Gautam's user avatar
1 vote
1 answer
124 views

dpkg: error processing package teamviewer (--install):

i was trying all solution in youtube, but no one solve my problem.. It's my first time using ementary os, so can someone help me please
Kevin Muhammad's user avatar
1 vote
2 answers
1k views

Settings schema 'io.elementary.code.settings' does not contain a key named 'smart-cut-copy'

Unable to open elementary's built in text-editor: code. When launching from dock, it never opens while the cursor gets replaced by a circular spinner for 10-15 seconds. When launched from terminal, ...
Prakhar Pal's user avatar
1 vote
1 answer
18 views

Wildcard searches in Code

I've been struggling with finding a working wildcard search in the Code application. Is there a character I'm missing? I'd like to be able to highlight multiple numbered items, replacing the number ...
Mike's user avatar
  • 11
1 vote
3 answers
279 views

Code - Toggle sidebar

All Is there any way to disable the sidebar in Code permanently? I've searched everywhere. in I can't find this option in code and OS settings.
user avatar
1 vote
0 answers
88 views

Broken Default App Association

I recently accidentally deleted my sources list, but have successfully rebuilt. However, all default application like scratch, pantheon terminal, seemed to lose its default application association. ...
gagah's user avatar
  • 11
1 vote
1 answer
80 views

Missing spell check in file extensions other than *.txt

The Scratch spell check extension does not work with some file extensions such as *.tex or *.php in elementary OS Loki. Is there a workaround for this?
boesf's user avatar
  • 13
1 vote
0 answers
76 views

Problem with Cirillic. How can I change code table (cp1251 or koi-8)?

How can I change code table (cp1251 or koi-8)? I did not find any preference for it.
Doctor_Che's user avatar
1 vote
1 answer
143 views

Pastebin extension not installing in Scratch, shows error icon [closed]

When I click on the checkbox for Pastebin under Preferences->Extensions, result is the red error symbol as shown in the image: Log file: [_LOG_LEVEL_INFO 20:42:45.082713] Application.vala:155: ...
SeasonedNoob's user avatar
0 votes
4 answers
3k views

Open elementary apps from the command-line

How can I open elementary apps from the command-line? Particularly Code and Files. I already found /usr/bin/io.elementary.files and /usr/bin/io.elementary.code, build they are not really convenient. ...
wout's user avatar
  • 183
0 votes
3 answers
595 views

Change Code theme color [duplicate]

Is there a way to change the code app black background color to be equal to terminal color to get a cool integration? Look at the image for a better understanding. Thank you in advance.
Joaquim José da Silva Xavier's user avatar
0 votes
1 answer
263 views

How to add support for additional coding languages?

When working on web dev projects, we work with many file formats, some of which aren't recognised by Code, such as .twig. Is there a way to add support for these? If not, is there a way to treat all ...
Dane Rossenrode's user avatar
0 votes
1 answer
278 views

Can't launch Code via alias

I installed Code (the new Scratch) via the instructions here. I also created an alias in my .bashrc file to launch it for purposes of running as su: alias code = 'io.elementary.code' Unfortunately ...
pretz's user avatar
  • 2,310
0 votes
1 answer
216 views

Scratch editor binary file load and session restoring problems

I'm on Freya. Scratch editor can't load (large?) binary files. It get stuck. Then if I force-close the app, when reopening it, it tries to restore the session and get stuck again. How can I 'recover' ...
MegaTux's user avatar
  • 171
0 votes
2 answers
68 views

Save window for Code app not displaying

I installed eOS 5.1.7 Hera a couple days ago on my 2012 Macbook Pro and I'm having a hard time with using specific apps. The one in particular is Code, a default text editing app that comes with Hera. ...
user avatar
0 votes
2 answers
117 views

In which folder does Code store the unsaved text files?

In which folder does Code store the unsaved text files? I have not clicked the save button and the file name is New Document. Where is it stored?
STekakwitha's user avatar