Tag: c

62 votes
14 answers
655 views
Is < faster than <=?

Is if (a < 901) faster than if (a <= 900)? Not exactly as in this simple example, but there are slight p

avatar
Trudy
0 1 0 9
asked 07 September, 2021
58 votes
12 answers
924 views
Why doesn&apos;t GCC optimize a*a*a*a*a*a to (a*a*a)*(a*a*a)?

I am doing some numerical optimization on a scientific application. One thing I noticed is that GCC will optim

avatar
Venice
0 1 0 9
asked 07 September, 2021
63 votes
15 answers
2.6K views
Android Studio Collapse definitions and methods

How can I collapse all definitions and methods within the Android Studio editor? Visual Studio has that optio

avatar
Ali
0 1 0 9
asked 07 September, 2021
53 votes
30 answers
1.9K views
How do I duplicate a whole line in Emacs?

I saw this same question for VIM and it has been something that I myself wanted to know how to do for Emacs. I

avatar
Bryan
0 1 0 9
asked 07 September, 2021
54 votes
13 answers
2.3K views
How can I maximize the editor pane in IntelliJ IDEA?

In Eclipse, I can type Ctrl+M or click the maximize icon in the editor pane to make the editor pane take up th

avatar
Nereida
0 1 0 9
asked 07 September, 2021
65 votes
6 answers
982 views
Saving vim macros

Does anyone know how to properly save/reuse macros recorded inside of a vim editor?

avatar
Shantay
0 1 0 9
asked 07 September, 2021
54 votes
2 answers
455 views
How to disable word-wrap in Xcode 4 editor?

I can't find how to disable word-wrap in Xcode 4 editor. How can I do it?

avatar
Gigi
0 1 0 9
asked 07 September, 2021
64 votes
3 answers
513 views
Is there an Eclipse line-width marker?

I have a specific project where I need to wrap every code line at 65 characters. I have set up the eclipse Jav

avatar
Forrest
0 1 0 9
asked 07 September, 2021
64 votes
13 answers
1.6K views
Using Emacs to recursively find and replace in text files not already open

As a follow-up to this question, it's trying to find out how to do something like this which should be ea

avatar
Xavier
0 1 0 9
asked 07 September, 2021
51 votes
16 answers
2K views
How can I make Sublime Text the default editor for Git?

I have a problem setting Sublime Text 2 as the core.editor with git. I've read through every post I coul

avatar
Robyn
0 1 0 9
asked 07 September, 2021
55 votes
5 answers
1.1K views
Does Notepad++ show all hidden characters?

In Notepad++ I have set "replace tab with 2 spaces". When coding in Python I copy-pasted some code from the w

avatar
Stacia
0 1 0 9
asked 07 September, 2021
56 votes
11 answers
1.1K views
Select all occurrences of selected word in VSCode

Are there any trick or extension to select all instances of selected word in visual studio code, to facilitate

avatar
Lashawna
0 1 0 9
asked 07 September, 2021
61 votes
7 answers
703 views
Set language for syntax highlighting in Visual Studio Code

Before the confusion begins, this question is about Code, the new lightweight Visual Studio Editor. You can ge

avatar
Serina
0 1 0 9
asked 07 September, 2021
54 votes
6 answers
2.4K views
How do I turn off the unlimited whitespace in IntelliJ editor?

How do I remove the ability to move the cursor after then end of line in IntelliJ?

avatar
Louetta
0 1 0 9
asked 07 September, 2021
56 votes
30 answers
1.4K views
How can I set up an editor to work with Git on Windows?

I'm trying out Git on Windows. I got to the point of trying "git commit" and I got this error: Termin

avatar
Karolyn
0 1 0 9
asked 07 September, 2021
42 votes
26 answers
1.7K views
Copy all the lines to clipboard

Is there any way to copy all lines from open file to clipboard in VI editor. I tried yG but it's not usin

avatar
Jeff
0 1 0 9
asked 07 September, 2021
56 votes
30 answers
3.1K views
Differences between Emacs and Vim

Without getting into a religious argument about why one is better than the other, what are the practical diffe

avatar
Corrin
0 1 0 9
asked 07 September, 2021
61 votes
30 answers
3K views
How to make vim paste from (and copy to) system&apos;s clipboard?

Unlike other editors, vim stores copied text in its own clipboard. So, it's very hard for me to copy some

avatar
Carmelina
0 1 0 9
asked 07 September, 2021
53 votes
19 answers
740 views
How do I duplicate a line or selection within Visual Studio Code?

Using Microsoft's Visual Studio Code, how do I duplicate a line of code and then move it up and down? (Si

avatar
Charis
0 1 0 9
asked 07 September, 2021
65 votes
15 answers
545 views
How do I move to end of line in Vim?

I know how to generally move around in command mode, specifically, jumping to lines, etc. But what is the comm

avatar
Trudy
0 1 0 9
asked 07 September, 2021