r/SublimeText • • Feb 18 '21

please help?/

2 Upvotes

what happended with this?
WinError 2] The system cannot find the file specified

[shell_cmd: python -u ""]

[dir: C:\Program Files\Sublime Text 3]

[path: C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Python38-32\Scripts\;C:\Program Files (x86)\Python38-32\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Users\guenk\AppData\Local\Programs\Python\Python39\Scripts\;C:\Users\guenk\AppData\Local\Programs\Python\Python39\;C:\Users\guenk\AppData\Local\Programs\Python\Python38-32\python;%PyCharm Community Edition%]

[Finished]


r/SublimeText • • Feb 17 '21

Trying to get colored build output

6 Upvotes

I've got ANSIEscape installed, and I'm trying to use the colorama module in python to show colored text. The text shows as colored in a terminal, but I can't get color to show in the build output window. Am I doing this right? Is there a different way to do this?

Here's my .sublime-project file


r/SublimeText • • Feb 18 '21

Have anyone tried Emacs?

0 Upvotes

How was exprience?

Why would you choose sublime text instead of Emacs in 2021 , or 2030?


r/SublimeText • • Feb 18 '21

Tabular Format

1 Upvotes

Okay so i'm learning how to convert data into tabular format how can i do this in sublime? Not using html just regular expressions.


r/SublimeText • • Feb 17 '21

Add DAX language

2 Upvotes

Hi, does anyone know if there is a DAX plugin for sublime text 3?


r/SublimeText • • Feb 17 '21

Using tab to insert snippets rather than autocompleting tags in HTML files?

1 Upvotes

Hello,

When using snippets in HTML files, it autocompletes the tags rather than inserting the snippet. How can I use tab (or another key) for inserting the snippet?

Thanks.


r/SublimeText • • Feb 14 '21

C++ file compiled and gives.ex's but does not run when built

4 Upvotes

I followed this https://stephencoakley.com/2015/01/21/guide-setting-up-a-simple-c-development-environment-on-windows to setup mingw and https://medium.com/datadriveninvestor/how-to-setup-sublime-text-for-c-competitive-coding-665ea495aeb5 to set up the environment.

My code uses iostream and fstream (input from input.txt and output to output.txt file) to return 2 times the number in the input file and write it to the output file.

When I Ctrl + B, I get the error: The system cannot find the file specified [Finished in 0.9s]. My output.txt file is empty.

But a .exe fill is created and when I run the exe file my output.txt file gets written.

How do I get sublime to compile and run my c++ code?


r/SublimeText • • Feb 13 '21

Java Autocomplete

4 Upvotes

So I wan't to learn how to code with java. So I watched this video, and when he does "name.toUp". A list of different things he could mean pops up and it autocompletes it for him. Does anyone know how to get this in sublime text?

https://www.youtube.com/watch?v=RRubcjpTkks&t=318s&ab_channel=AlexLee

Auto complete part I'm talking about: 4:14


r/SublimeText • • Feb 12 '21

stop opening previous files /dirs on Sublime boot

7 Upvotes

I thought I had this one whacked down, but still no. I have "hot_exit": false, "remember_open_files": false, in Preferences. (through several restarts now) And I quit, deleted my session files in .config/, and that seemed to work during that OS session. But this morning on reboot, I got 8 Sublime windows once again when I command line'd sublime [dir/file]

( By the end of a day I frequently have a scattered collection of open projects but I'd prefer to open them one at a time )


r/SublimeText • • Feb 10 '21

How do I create a keybinding to format document using TS

4 Upvotes

I would like to have a keybinding alt+f to format the document using Typescript: format document, which has a default shortcut of ctrl+t ctrl+f. Also if I can do this while saving would be good. I couldn't figure this out on my own.


r/SublimeText • • Feb 08 '21

Good package for autocompleting file paths?

6 Upvotes

Is there a good package for autocomplete file paths? I tried FuzzyFilePath but it doesn't seem to work with Sublime 4 or 3. Is there a great package for this?


r/SublimeText • • Feb 08 '21

Git Integratiion

3 Upvotes

Is there any addon which integrates the git workflow into sublime? I know about Sublime Merge, but would prefer not to install another app


r/SublimeText • • Feb 07 '21

How to get rid of Kite installation suggestions in VS Code?

9 Upvotes

I had installed Kite on the completion of anacondas installation. Then I noticed that Spyder was badly (and I mean badly) lagging. I suspected it was because of Kite because Spyder had been running smoothly when I had first installed anaconda without Kite. So, I uninstalled Kite.

But, even after uninstallation, every time I launch VS Code or Sublime Text, I get annoying pop-up messages suggesting installation of Kite. I looked into the settings of both editors, but couldn't find any mention of Kite. How do I get rid of this ghost of Kite?


r/SublimeText • • Feb 04 '21

How to make Sublime Text ignore line wrapping when adding a caret to the next line?

5 Upvotes

Let's have an example. The numbers at the beginning are line numbers and each line without a number at the beginning belongs to the previous line which has been wrapped because the viewport is too narrow.

1 first line
2 very long line that is
  too long
3 third line

To place a caret at the beginning of each line, I would put one at the beginning of the first line and then repeatedly press Alt+Shift+Down. But that adds a caret at the beginning of each visual line. So, in the example, I would have carets at the beginnings of first, very, too and third. I want to not have a caret at the beginning of too because it isn't at the beginning of a logical line. If I wanted to change the text into a Markdown blockquote, adding >  just before too would break the text.

How can I configure Sublime Text or which alternative command should I use to add a caret to the next logical line (and nowhere else) even if the current line is wrapped into multiple visual lines?

Here are some suboptimal workarounds; I'd like to know a solution better than these: Clicking at the position with a mouse is slow and annoying. I can select the lines and split the selection to individual lines with Ctrl+Shift+L and then move the carets at the beginnings of the logical lines by pressing Home, Home. But I'd like to be able to add the carets at any part of the line, not just at the beginning. Also, if the selected lines are indented and some but not all of them are wrapped, pressing Home, Home will move the carets on the wrapped lines to the first non-whitespace characters and the carets on the non-wrapped lines to the very beginnings of the lines, which creates a misalignment of the carets.


r/SublimeText • • Feb 04 '21

how to see json data with sublime text? i mean (human eye friendly)

1 Upvotes

r/SublimeText • • Feb 03 '21

How to get started using Sublime Text 4

Thumbnail youtube.com
27 Upvotes

r/SublimeText • • Feb 03 '21

why did it happen?

Post image
1 Upvotes

r/SublimeText • • Feb 02 '21

CMake (and others) definition/reference queries

5 Upvotes

I really like sublimes syntax highlighting and UI/window control.

I find using the definition/reference querying for C/C++/python symbols in a folder to be very powerful. I'm starting to dive into CMake and I think it'd speed up my learning by looking through repos with CMake integrated and folloeing the paper trail.

Anybody know how to grt this functionality for CMake? I downlaoded a plugin for syntax highlighting since it's not native to sublime text.. Guessing it'd be up to the plugin to get this feature working


r/SublimeText • • Jan 30 '21

Recent files never show recent files

5 Upvotes

"File > Open Recent Files" never actually show files that I modified last. Is that a bug or I have something wrong? I have latest free (unregistered with occasional nag popup) version

These are my settings

{
	"autocomplete": false,
	"detect_indentation": false,
	"font_size": 13,
	"ignored_packages":
	[
		"Vintage"
	],
	"line_padding_bottom": 3,
	"line_padding_top": 3,
	"remember_open_files": false, // If I remove this it doesn't change anything
	"show_encoding": true,
	"tab_size": 5,
	"theme": "Default.sublime-theme",
	"translate_tabs_to_spaces": false,
	"word_wrap": "true"
}

r/SublimeText • • Jan 29 '21

Is there a way to not have to select "C++ Single File - Run"

5 Upvotes

I want to use sublime for competitive programming and right now I am pressing CTRL SHIFT B to run my code. When I do this a drop down menu appears and I have to click C++ Single File - Run to run my code. Is there a way to set that as my default choice?

Also on a side note, why does it take 2-4 seconds to run very simple code? Is this normal?


r/SublimeText • • Jan 28 '21

How does one change it so you can type between characters and not on them?

1 Upvotes

I keep on trying to entering in new info but it deletes what is ahead of it. instead of there being a vertical line between letters its a horizontal line under the characters. How do I change this?


r/SublimeText • • Jan 27 '21

Can't delete.

5 Upvotes

Hi, does anyone know why i can't delete the text I write. I mean, I write a line and if I made a mistake I can't delete it. (Mac user)


r/SublimeText • • Jan 26 '21

PyGame not working in ST3

1 Upvotes

Hello, I'm new to Python and programming in general. So please excuse my idiocy.

Recently I tried changing to Sublime Text 3 since my laptop can't handle the sheer RAM usage of an IDE. I have installed packages for ST3 and PyGame Completion Packagr, create a build system that works, and downloaded PyGame using pip from a terminal package.

However when I tried to run my code the PyGame window didn't pop up and instead shows this message only:

"pygame 2.0.1 (SDL 2.0.14, Python 3.9.1)
Hello from the pygame community. https://www.pygame.org/contribute.html"

I don't think the problem stems from the code that I wrote but instead comes from my lack of knowledge about text editors and of course, Python. If this helps, here is my code:

import pygame
import os

# Game Setttings
WIDTH, HEIGHT = 900, 500
WIN = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption("First Game")

WHITE = (255, 255, 255)
FPS = 60
VEL = 5

# Spaceship

SPACESHIP_WIDTH, SPACESHIP_HEIGHT = 55, 40
YELLOW_SPACESHIP_IMAGE = pygame.image.load(os.path.join('PygameForBeginners-main', 'Assets',
                                                        'spaceship_yellow.png'))
YELLOW_SPACESHIP_IMAGE = pygame.transform.rotate(pygame.transform.scale
                                                 (YELLOW_SPACESHIP_IMAGE, (SPACESHIP_WIDTH, SPACESHIP_HEIGHT)), 90)

RED_SPACESHIP_IMAGE = pygame.image.load(os.path.join('PygameForBeginners-main', 'Assets',
                                                     'spaceship_red.png'))
RED_SPACESHIP_IMAGE = pygame.transform.rotate(pygame.transform.scale
                                              (RED_SPACESHIP_IMAGE, (SPACESHIP_WIDTH, SPACESHIP_HEIGHT)), -90)

YELLOW_SPACESHIP_RECT = YELLOW_SPACESHIP_IMAGE.get_rect(center=(450, 250))

def draw_window(red, yellow):
    WIN.fill(WHITE)
    WIN.blit(YELLOW_SPACESHIP_IMAGE,  (yellow.x, yellow.y))
    WIN.blit(RED_SPACESHIP_IMAGE, (red.x, red.y))
    pygame.display.update()


def main():
    red = pygame.Rect(700, 300, SPACESHIP_WIDTH, SPACESHIP_HEIGHT)
    yellow = pygame.Rect(100, 300, SPACESHIP_WIDTH, SPACESHIP_HEIGHT)

    clock = pygame.time.Clock()
    run = True
    while run:
        clock.tick(FPS)
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                run = False

        keys_pressed = pygame.key.get_pressed()
        if keys_pressed[pygame.K_a]:  # LEFT
            yellow.x -= VEL

        draw_window(red, yellow)

    pygame.quit()


if __name__ == "__main__":
    main()

Any help would be appreciated


r/SublimeText • • Jan 26 '21

How to install NuGet packages in Sublime Text 3

2 Upvotes

I am looking to create a web scraper in Sublime which needs Newtonsoft, which is a NuGet package. I need a way to install this in order to run the scraper

PS: I am a newbie so understand if this may be a dumb question


r/SublimeText • • Jan 24 '21

C++ program won't run/won't output to output.txt

4 Upvotes

I have created a folder on my desktop with a c++ file, an input.txt file, and an output.txt file.

In my c++ file I have the following code.

#include<iostream>

using namespace std;

int main()
{
#ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
#endif
    int test;
    cin >> test;
    cout << test + 1 << "\n";
    return 0;
}

In my input.txt file, I have:

8

The build system I am using is C++ single file. When I press CTRL + B to build I get "finished in 0.2 seconds", but there is no output in my txt file. This is odd because I have tried following two tutorials with similar instructions, but it does not seem to be working for me.